mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 10:37:24 -07:00
crypto_sign(): memzero the nonce after use
This commit is contained in:
parent
99eee854fe
commit
9080766246
@ -64,6 +64,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;
|
||||
|
Loading…
Reference in New Issue
Block a user