Add tests for custom randombytes_uniform.

Check for crypto_auth_hmacsha512256_statebytes() presence.
This commit is contained in:
Frank Denis
2015-05-09 15:54:18 +02:00
parent fe02b1db1b
commit ee97d5e3f8
2 changed files with 29 additions and 0 deletions
+2
View File
@@ -57,6 +57,8 @@ int main(void)
assert(crypto_auth_hmacsha512_keybytes() > 0U);
assert(crypto_auth_hmacsha512256_bytes() == crypto_auth_bytes());
assert(crypto_auth_hmacsha512256_keybytes() == crypto_auth_keybytes());
assert(crypto_auth_hmacsha512256_statebytes() >=
crypto_auth_hmacsha512256_keybytes());
assert(crypto_auth_hmacsha256_statebytes() ==
sizeof(crypto_auth_hmacsha256_state));
assert(crypto_auth_hmacsha512_statebytes() ==