mirror of
https://github.com/zama-ai/concrete.git
synced 2026-04-17 03:00:54 -04:00
test(keyset): Set a proper variance for encryp_decrypt test
This commit is contained in:
@@ -53,10 +53,13 @@ clientlib::ClientParameters generateClientParameterOneScalarOneScalar(
|
||||
params.secretKeys.insert({clientlib::SMALL_KEY, {/*.dimension =*/dimension}});
|
||||
// One input and output encryption gate on the same secret key and encoded
|
||||
// with the same precision
|
||||
const auto v0Curve =
|
||||
mlir::concretelang::getV0Curves(SECURITY_LEVEL_128, KEY_FORMAT_BINARY);
|
||||
clientlib::EncryptionGate encryption;
|
||||
encryption.secretKeyID = clientlib::SMALL_KEY;
|
||||
encryption.encoding.precision = precision;
|
||||
encryption.encoding.crt = crtDecomposition;
|
||||
encryption.variance = v0Curve->getVariance(1, dimension, 64);
|
||||
clientlib::CircuitGate gate;
|
||||
gate.encryption = encryption;
|
||||
params.inputs.push_back(gate);
|
||||
|
||||
Reference in New Issue
Block a user