mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
pki_mbedcrypto: Use explicit_bzero()
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit b6b5a61c97)
This commit is contained in:
@@ -1046,7 +1046,7 @@ static ssh_string rsa_do_sign_hash(const unsigned char *digest,
|
||||
}
|
||||
|
||||
ssh_string_fill(sig_blob, sig, slen);
|
||||
memset(sig, 'd', slen);
|
||||
explicit_bzero(sig, slen);
|
||||
SAFE_FREE(sig);
|
||||
|
||||
return sig_blob;
|
||||
|
||||
Reference in New Issue
Block a user