Use a guard page instead of NULL for opt arguments in tests

This commit is contained in:
Frank Denis
2018-12-24 15:02:59 +01:00
parent 2916230061
commit 34e787030f
10 changed files with 56 additions and 47 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ main(void)
memset(a2, 0, sizeof a2);
crypto_auth_hmacsha256_init(&st256, key2, sizeof key2);
crypto_auth_hmacsha256_update(&st256, NULL, 0U);
crypto_auth_hmacsha256_update(&st256, guard_page, 0U);
crypto_auth_hmacsha256_update(&st256, c, 1U);
crypto_auth_hmacsha256_update(&st256, c, sizeof c - 2U);
crypto_auth_hmacsha256_final(&st256, a2);