More constant tests

This commit is contained in:
Frank Denis
2014-09-13 14:29:59 -07:00
parent ab37bd3e0b
commit 2c1b507045
2 changed files with 25 additions and 2 deletions
+6 -2
View File
@@ -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;
}