mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-19 10:05:05 -07:00
parent
7978205916
commit
704e97fdf5
@ -26,7 +26,7 @@ crypto_kdf_hkdf_sha256_extract_final(crypto_kdf_hkdf_sha256_state *state,
|
||||
unsigned char prk[crypto_kdf_hkdf_sha256_KEYBYTES])
|
||||
{
|
||||
crypto_auth_hmacsha256_final(&state->st, prk);
|
||||
sodium_memzero(state, sizeof state);
|
||||
sodium_memzero(state, sizeof *state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ crypto_kdf_hkdf_sha512_extract_final(crypto_kdf_hkdf_sha512_state *state,
|
||||
unsigned char prk[crypto_kdf_hkdf_sha512_KEYBYTES])
|
||||
{
|
||||
crypto_auth_hmacsha512_final(&state->st, prk);
|
||||
sodium_memzero(state, sizeof state);
|
||||
sodium_memzero(state, sizeof *state);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user