diff options
Diffstat (limited to 'src/crypto/blake2s.c')
-rw-r--r-- | src/crypto/blake2s.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/blake2s.c b/src/crypto/blake2s.c index 0a7170e..1182ca9 100644 --- a/src/crypto/blake2s.c +++ b/src/crypto/blake2s.c @@ -804,7 +804,7 @@ static const uint8_t blake2s_keyed_testvecs[][BLAKE2S_OUTBYTES] = { { 0x3F, 0xB7, 0x35, 0x06, 0x1A, 0xBC, 0x51, 0x9D, 0xFE, 0x97, 0x9E, 0x54, 0xC1, 0xEE, 0x5B, 0xFA, 0xD0, 0xA9, 0xD8, 0x58, 0xB3, 0x31, 0x5B, 0xAD, 0x34, 0xBD, 0xE9, 0x99, 0xEF, 0xD7, 0x24, 0xDD } }; -void blake2s_selftest(void) +bool blake2s_selftest(void) { uint8_t key[BLAKE2S_KEYBYTES]; uint8_t buf[ARRAY_SIZE(blake2s_testvecs)]; @@ -836,5 +836,6 @@ void blake2s_selftest(void) if (success) pr_info("blake2s self-tests: pass\n"); + return success; } #endif |