feat(KeySetCache): use a artifacts to store the cache

This commit is contained in:
rudy
2022-03-25 09:20:01 +01:00
committed by rudy-6-4
parent 5a7d6a2c69
commit 2c4d399575
4 changed files with 63 additions and 22 deletions

View File

@@ -13,6 +13,7 @@
#include <fstream>
#include <sstream>
#include <string>
#include <utime.h>
extern "C" {
#include "concrete-ffi.h"
@@ -78,6 +79,10 @@ KeySetCache::loadKeys(ClientParameters &params, uint64_t seed_msb,
// TODO: text dump of all parameter in /hash
auto key_set = std::make_unique<KeySet>();
// Mark the folder as recently use.
// e.g. so the CI can do some cleanup of unused keys.
utime(folderPath.c_str(), nullptr);
std::map<LweSecretKeyID, std::pair<LweSecretKeyParam, LweSecretKey_u64 *>>
secretKeys;
std::map<LweSecretKeyID, std::pair<BootstrapKeyParam, LweBootstrapKey_u64 *>>