From: Konstantinos Margaritis Date: Fri, 17 Mar 2023 09:38:25 +0000 (+0000) Subject: call xchacha_encrypt_bytes_svp64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef01bbf0aa7ace766492044b7211077e46340ce4;p=openpower-isa.git call xchacha_encrypt_bytes_svp64 --- 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){