commit 002d86dfc768e95aa7bd4ebf8e840da86e7ffb45
parent 0120fe8345d6592bd61c0ae4df1c3db34155715c
Author: Florian Dold <florian@dold.me>
Date: Tue, 19 Oct 2021 19:47:45 +0200
fix test vector output
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/util/anastasis-crypto-tvg.c b/src/util/anastasis-crypto-tvg.c
@@ -484,14 +484,15 @@ output_vectors ()
ANASTASIS_CRYPTO_truth_encrypt (&nonce,
&truth_enc_key,
- &truth, truth_size,
+ truth,
+ truth_size,
&enc_truth,
&ect_size);
d2j_auto (vec, "input_nonce", &nonce);
d2j_auto (vec, "input_truth_enc_key", &truth_enc_key);
d2j (vec, "input_truth", &truth, truth_size);
- d2j (vec, "output_encrypted_truth", &enc_truth, ect_size);
+ d2j (vec, "output_encrypted_truth", enc_truth, ect_size);
}
{