make sure ntru benchmark pub key size init

This commit is contained in:
toddouska 2014-07-10 11:14:22 -07:00
parent 1c7eb61017
commit 1264c0742c
1 changed files with 3 additions and 3 deletions

View File

@ -1062,7 +1062,7 @@ void bench_ntruKeyGen(void)
int i;
byte public_key[5951]; /* 2048 key equivalent to rsa */
word16 public_key_len;
word16 public_key_len = sizeof(public_key);
byte private_key[5951];
word16 private_key_len = sizeof(private_key);
@ -1071,8 +1071,8 @@ void bench_ntruKeyGen(void)
'C', 'y', 'a', 'S', 'S', 'L', ' ', 't', 'e', 's', 't'
};
word32 rc = ntru_crypto_drbg_instantiate(112, pers_str, sizeof(pers_str), GetEntropy, &drbg);
word32 rc = ntru_crypto_drbg_instantiate(112, pers_str, sizeof(pers_str),
GetEntropy, &drbg);
if(rc != DRBG_OK) {
printf("NTRU drbg instantiate failed\n");
return;