From 2cd7cc72bd89006ae1adfe6ec6f23b69b9bc4282 Mon Sep 17 00:00:00 2001 From: Alberto Ibarrondo Date: Tue, 26 Dec 2023 19:01:36 +0100 Subject: [PATCH] Tiny fix +234 --- Pyfhel/Afhel/Afseal.cpp | 8 ++++---- docs/index.rst | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Pyfhel/Afhel/Afseal.cpp b/Pyfhel/Afhel/Afseal.cpp index c6f90fb..a06d9c8 100644 --- a/Pyfhel/Afhel/Afseal.cpp +++ b/Pyfhel/Afhel/Afseal.cpp @@ -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(context); // Refresh KeyGen obj + this->keyGenObj = make_shared(afhel_context); // Refresh KeyGen obj this->publicKey = make_shared(); keyGenObj->create_public_key(*publicKey); // Extract keys this->secretKey = make_shared(keyGenObj->secret_key()); - this->encryptor = make_shared(context, *publicKey); - this->decryptor = make_shared(context, *secretKey); + this->encryptor = make_shared(afhel_context, *publicKey); + this->decryptor = make_shared(afhel_context, *secretKey); } void Afseal::relinKeyGen() diff --git a/docs/index.rst b/docs/index.rst index ded1270..a098a82 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -47,7 +47,7 @@ Index .. toctree:: :glob: - :maxdepth: 4 + :maxdepth: 2 source/getting_started _autoexamples/index