enhance(client/server): Don't decrypt directly from istream use a intermediate container to represent public result

This commit is contained in:
Quentin Bourgerie
2022-02-28 16:54:29 +01:00
parent 69037cd1fa
commit 73da7da81c
14 changed files with 181 additions and 203 deletions

View File

@@ -230,7 +230,6 @@ KeySet::encrypt_lwe(size_t argPos, uint64_t *ciphertext, uint64_t input) {
outcome::checked<void, StringError>
KeySet::decrypt_lwe(size_t argPos, uint64_t *ciphertext, uint64_t &output) {
if (argPos >= outputs.size()) {
return StringError("decrypt_lwe: position of argument is too high");
}