diff options
Diffstat (limited to 'keypair.c')
-rw-r--r-- | keypair.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -22,6 +22,8 @@ void generate_keypair(void) xmemset(publickey, 0, sizeof(publickey)); xmemset(secretkey, 0, sizeof(secretkey)); + curve25519_selftest(); + printf("Reading from %s (this may take a while) ...\n", HIG_ENTROPY_SOURCE); @@ -49,6 +51,8 @@ void verify_keypair(void) unsigned char secretkey[crypto_box_sec_key_size]; char file[128]; + curve25519_selftest(); + xmemset(publickey, 0, sizeof(publickey)); xmemset(publicres, 0, sizeof(publicres)); xmemset(secretkey, 0, sizeof(secretkey)); |