From e50179c1ff55bb3aed538f8c20dbe3983114486e Mon Sep 17 00:00:00 2001 From: Konstantinos Margaritis Date: Fri, 17 Mar 2023 09:38:25 +0000 Subject: [PATCH] call xchacha_encrypt_bytes_svp64 --- crypto/chacha20/src/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crypto/chacha20/src/test.c b/crypto/chacha20/src/test.c index 4c93c708..f797f0f3 100644 --- a/crypto/chacha20/src/test.c +++ b/crypto/chacha20/src/test.c @@ -8,6 +8,7 @@ #include #include #include "xchacha20.h" +#include "xchacha20_wrapper.h" /** Compare our output to the output of a known good XChaCha20 library. @@ -52,7 +53,8 @@ int check_cpp(void){ /* Crypto++ initializes their counter to 1 instead of 0 */ xchacha_set_counter(&ctx, counter); - xchacha_encrypt_bytes(&ctx, plaintext, buffer, msglen); + //xchacha_encrypt_bytes(&ctx, plaintext, buffer, msglen); + xchacha_encrypt_bytes_svp64(&ctx, plaintext, buffer, msglen); /* Compare our ciphertext to the correct ciphertext */ if(memcmp(buffer, correct_ciphertext, msglen) != 0){ -- 2.30.2