X-Git-Url: https://git.openssl.org/gitweb/?a=blobdiff_plain;f=test%2Fchacha_internal_test.c;h=be4401218771d6790599331a2d18c64d62042ced;hb=a9f3f1ccbbf84f4ef804ede82d4b072492b54c03;hp=0c0be9b38792b552a07dabb9a60692c6784475f2;hpb=bea4ac2b2e6499e1f0844c9dbacd670955d94ccb;p=openssl.git diff --git a/test/chacha_internal_test.c b/test/chacha_internal_test.c index 0c0be9b387..be44012187 100644 --- a/test/chacha_internal_test.c +++ b/test/chacha_internal_test.c @@ -14,20 +14,19 @@ #include #include -#include "test_main.h" #include "testutil.h" #include "internal/chacha.h" -const static unsigned int key[] = { +static const unsigned int key[] = { 0x03020100, 0x07060504, 0x0b0a0908, 0x0f0e0d0c, 0x13121110, 0x17161514, 0x1b1a1918, 0x1f1e1d1c }; -const static unsigned int ivp[] = { +static const unsigned int ivp[] = { 0x00000000, 0x00000000, 0x03020100, 0x07060504 }; -const static unsigned char ref[] = { +static const unsigned char ref[] = { 0xf7, 0x98, 0xa1, 0x89, 0xf1, 0x95, 0xe6, 0x69, 0x82, 0x10, 0x5f, 0xfb, 0x64, 0x0b, 0xb7, 0x75, 0x7f, 0x57, 0x9d, 0xa3, 0x16, 0x02, 0xfc, 0x93, @@ -180,11 +179,12 @@ static int test_cha_cha_internal(int n) return 1; } -void register_tests(void) +int setup_tests(void) { #ifdef CPUID_OBJ OPENSSL_cpuid_setup(); #endif ADD_ALL_TESTS(test_cha_cha_internal, sizeof(ref)); + return 1; }