mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add some zeroing
This commit is contained in:
@@ -60,6 +60,7 @@ crypto_auth_hmacsha512256_final(crypto_auth_hmacsha512256_state *state,
|
||||
|
||||
crypto_auth_hmacsha512_final((crypto_auth_hmacsha512_state *) state, out0);
|
||||
memcpy(out, out0, 32);
|
||||
sodium_memzero(out0, sizeof out0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user