aboutsummaryrefslogtreecommitdiff
path: root/src/pki_crypto.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-02-12 14:35:55 +0100
committerAndreas Schneider <asn@cryptomilk.org>2018-02-12 14:41:27 +0100
commitebcff9fd630f8bd26b0cda23e39c63805f2b781b (patch)
tree117d6f7a61ebf2dbef4df9e3f09f487077afb79c /src/pki_crypto.c
parent25ff1214a40531cea33a91eed6225d4f4bf51cbc (diff)
downloadlibssh-ebcff9fd630f8bd26b0cda23e39c63805f2b781b.tar.gz
libssh-ebcff9fd630f8bd26b0cda23e39c63805f2b781b.tar.xz
libssh-ebcff9fd630f8bd26b0cda23e39c63805f2b781b.zip
src: Use explicit_bzero() if available on the platform
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'src/pki_crypto.c')
-rw-r--r--src/pki_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pki_crypto.c b/src/pki_crypto.c
index a2c89325..91e534e1 100644
--- a/src/pki_crypto.c
+++ b/src/pki_crypto.c
@@ -1434,7 +1434,7 @@ static ssh_signature pki_signature_from_rsa_blob(const ssh_key pubkey,
blob_orig = (char *) ssh_string_data(sig_blob);
/* front-pad the buffer with zeroes */
- BURN_BUFFER(blob_padded_data, pad_len);
+ explicit_bzero(blob_padded_data, pad_len);
/* fill the rest with the actual signature blob */
memcpy(blob_padded_data + pad_len, blob_orig, len);