mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 12:50:30 +09:00
external: Fix resetting the state
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
2
src/external/bcrypt_pbkdf.c
vendored
2
src/external/bcrypt_pbkdf.c
vendored
@@ -98,7 +98,7 @@ bcrypt_hash(uint8_t *sha2pass, uint8_t *sha2salt, uint8_t *out)
|
||||
/* zap */
|
||||
BURN_BUFFER(ciphertext, sizeof(ciphertext));
|
||||
BURN_BUFFER(cdata, sizeof(cdata));
|
||||
BURN_BUFFER(&state, sizeof(state));
|
||||
ZERO_STRUCT(state);
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user