diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_saos.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_saos.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_saos.c b/src/lib/libcrypto/rsa/rsa_saos.c index 3a07a7af4a..0a4f37a3da 100644 --- a/src/lib/libcrypto/rsa/rsa_saos.c +++ b/src/lib/libcrypto/rsa/rsa_saos.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_saos.c,v 1.17 2015/07/19 18:29:31 miod Exp $ */ | 1 | /* $OpenBSD: rsa_saos.c,v 1.18 2015/09/10 15:56:25 jsing Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -97,7 +97,7 @@ RSA_sign_ASN1_OCTET_STRING(int type, const unsigned char *m, unsigned int m_len, | |||
| 97 | else | 97 | else |
| 98 | *siglen = i; | 98 | *siglen = i; |
| 99 | 99 | ||
| 100 | OPENSSL_cleanse(s, (unsigned int)j + 1); | 100 | explicit_bzero(s, (unsigned int)j + 1); |
| 101 | free(s); | 101 | free(s); |
| 102 | return ret; | 102 | return ret; |
| 103 | } | 103 | } |
| @@ -142,7 +142,7 @@ RSA_verify_ASN1_OCTET_STRING(int dtype, const unsigned char *m, | |||
| 142 | err: | 142 | err: |
| 143 | M_ASN1_OCTET_STRING_free(sig); | 143 | M_ASN1_OCTET_STRING_free(sig); |
| 144 | if (s != NULL) { | 144 | if (s != NULL) { |
| 145 | OPENSSL_cleanse(s, (unsigned int)siglen); | 145 | explicit_bzero(s, (unsigned int)siglen); |
| 146 | free(s); | 146 | free(s); |
| 147 | } | 147 | } |
| 148 | return ret; | 148 | return ret; |
