Skip to content

Commit

Permalink
switched seed/key in logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bri3d committed Mar 3, 2021
1 parent dad127c commit 90edfb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twister.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ int main(int argc, char *argv[])
}
}

printf("\nSeed Value (PRNG Data): \n");
printf("\nKey Value (PRNG Data): \n");
unsigned char *rand_data_bytes = (unsigned char *)rand_data;
for(j=0; j<256; j++) {
printf(" %02X%s", rand_data_bytes[j], (j%4)==4 ? " " : "");
Expand All @@ -203,7 +203,7 @@ int main(int argc, char *argv[])
BN_mod_exp(out, data_num, e, n, ctx);
unsigned char rsa_output[256];
BN_bn2binpad(out, rsa_output, 256);
printf("\nKey Value (Crypted PRNG Data): \n");
printf("\nSeed Value (Crypted PRNG Data): \n");
for(j=0; j<256; j++) {
printf(" %02X%s", rsa_output[j], (j%4)==4 ? " " : "");
}
Expand Down

0 comments on commit 90edfb0

Please sign in to comment.