Test crypto_sign_open() with NULL as a pointer to the message size

This commit is contained in:
Frank Denis 2015-01-14 19:59:44 +01:00
parent 956d4c4ada
commit 69d9553ec2

View File

@ -1091,7 +1091,7 @@ int main(void)
printf("signature failure: [%u]\n", i);
continue;
}
if (crypto_sign_open(m, &mlen, sm, smlen, test_data[i].pk) != 0) {
if (crypto_sign_open(m, NULL, sm, smlen, test_data[i].pk) != 0) {
printf("crypto_sign_open() failure: [%u]\n", i);
continue;
}