mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
More constant tests
This commit is contained in:
+6
-2
@@ -20,8 +20,12 @@ int main(void)
|
||||
assert(crypto_auth_bytes() > 0U);
|
||||
assert(crypto_auth_keybytes() > 0U);
|
||||
assert(strcmp(crypto_auth_primitive(), "hmacsha512256") == 0);
|
||||
assert(crypto_auth_hmacsha512256_bytes() > 0U);
|
||||
assert(crypto_auth_hmacsha512256_keybytes() > 0U);
|
||||
assert(crypto_auth_hmacsha256_bytes() > 0U);
|
||||
assert(crypto_auth_hmacsha256_keybytes() > 0U);
|
||||
assert(crypto_auth_hmacsha512_bytes() > 0U);
|
||||
assert(crypto_auth_hmacsha512_keybytes() > 0U);
|
||||
assert(crypto_auth_hmacsha512256_bytes() == crypto_auth_bytes());
|
||||
assert(crypto_auth_hmacsha512256_keybytes() == crypto_auth_keybytes());
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user