mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-10 04:35:03 -05:00
fix: destroy glwe secret key after use
This commit is contained in:
@@ -205,6 +205,8 @@ KeySet::generateBootstrapKey(BootstrapKeyID id, BootstrapKeyParam param) {
|
||||
|
||||
CAPI_ASSERT_ERROR(destroy_lwe_bootstrap_key_u64(bsk));
|
||||
|
||||
CAPI_ASSERT_ERROR(destroy_glwe_secret_key_u64(output_glwe_sk));
|
||||
|
||||
// Store the bootstrap key
|
||||
bootstrapKeys[id] = {param, std::make_shared<LweBootstrapKey>(fbsk)};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user