Skip to content

Commit

Permalink
[feat]: rsync cmake project from the bazel project
Browse files Browse the repository at this point in the history
  • Loading branch information
dterazhao committed Nov 30, 2023
1 parent 6c79502 commit e71ec10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions heu/library/phe/phe.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ HeKit::HeKit(SchemaType schema_type) {
Setup(std::move(pk), std::move(sk));
}

#define PK_SK_INIT(ns) \
/*#define PK_SK_INIT(ns) \
[&](ns::PublicKey& pk) { \
ns::SecretKey sk; \
sk.Deserialize(sk_buffer); \
Expand All @@ -101,7 +101,7 @@ HeKit::HeKit(yacl::ByteContainerView pk_buffer,
auto sk = public_key_->Visit(
HE_DISPATCH_RET(std::shared_ptr<SecretKey>, PK_SK_INIT));
secret_key_ = std::move(sk);
}
}*/

#define HE_SPECIAL_SETUP_BY_PK(ns) \
[&](const ns::PublicKey& pk1) { \
Expand Down
2 changes: 0 additions & 2 deletions heu/library/phe/phe.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ class HeKit : public HeKitSecretBase {
HeKit(std::shared_ptr<PublicKey> pk, std::shared_ptr<SecretKey> sk);
HeKit(yacl::ByteContainerView pk_buffer, yacl::ByteContainerView sk_buffer);

HeKit(yacl::ByteContainerView pk_buffer, yacl::ByteContainerView sk_buffer);

[[nodiscard]] const std::shared_ptr<Encryptor>& GetEncryptor() const {
return encryptor_;
}
Expand Down

0 comments on commit e71ec10

Please sign in to comment.