Skip to content

Commit

Permalink
Tiny fix +234
Browse files Browse the repository at this point in the history
  • Loading branch information
ibarrond committed Dec 26, 2023
1 parent 3efbdc7 commit 2cd7cc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Pyfhel/Afhel/Afseal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ string Afseal::ContextGen(scheme_t scheme,
// KEY GENERATION
void Afseal::KeyGen()
{
auto &context = *(this->get_context());
auto &afhel_context = *(this->get_context());
// Key generator
this->keyGenObj = make_shared<KeyGenerator>(context); // Refresh KeyGen obj
this->keyGenObj = make_shared<KeyGenerator>(afhel_context); // Refresh KeyGen obj
this->publicKey = make_shared<PublicKey>();
keyGenObj->create_public_key(*publicKey); // Extract keys
this->secretKey = make_shared<SecretKey>(keyGenObj->secret_key());
this->encryptor = make_shared<Encryptor>(context, *publicKey);
this->decryptor = make_shared<Decryptor>(context, *secretKey);
this->encryptor = make_shared<Encryptor>(afhel_context, *publicKey);
this->decryptor = make_shared<Decryptor>(afhel_context, *secretKey);
}

void Afseal::relinKeyGen()
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Index

.. toctree::
:glob:
:maxdepth: 4
:maxdepth: 2

source/getting_started
_autoexamples/index
Expand Down

0 comments on commit 2cd7cc7

Please sign in to comment.