crypto_sign(): memzero the nonce after use

This commit is contained in:
Frank Denis 2017-10-06 21:35:52 +02:00
parent 291859874b
commit d56007a6fa

View File

@ -92,6 +92,7 @@ _crypto_sign_ed25519_detached(unsigned char *sig, unsigned long long *siglen_p,
sc_muladd(sig + 32, hram, az, nonce);
sodium_memzero(az, sizeof az);
sodium_memzero(nonce, sizeof nonce);
if (siglen_p != NULL) {
*siglen_p = 64U;