crypto_sign() test: explicitly initialize sig in case the previous tests failed.

This commit is contained in:
Frank Denis
2014-09-22 17:09:16 -07:00
parent 5558885953
commit 471922cb05
+1
View File
@@ -1059,6 +1059,7 @@ int main(void)
unsigned int i;
unsigned int j;
memset(sig, 0, sizeof sig);
for (i = 0U; i < (sizeof test_data) / (sizeof test_data[0]); i++) {
memcpy(skpk, test_data[i].sk, crypto_sign_SEEDBYTES);
memcpy(skpk + crypto_sign_SEEDBYTES, test_data[i].pk,