summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2003-06-06 17:51:34 +0000
committerGeoff Thorpe <geoff@openssl.org>2003-06-06 17:51:34 +0000
commitdcfb57c736c2591c80b40d40e5f3a664882fb738 (patch)
tree05a4e31d8e0ae70e377f58e518c8ccae62a68d6d /engines
parent2ee67f1dad9b2c8e6a097ba1fdd2ea2b0eb69719 (diff)
This memset() in the ubsec ENGINE is a bug. Zeroing out the result array
should not be necessary in any case, but more importantly the result and input BIGNUMs could be the same, in which case this is clearly a problem. Submitted by: Jonathan Hersch Reviewed by: Joe Orton Approved by: Geoff Thorpe
Diffstat (limited to 'engines')
-rw-r--r--engines/e_ubsec.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/engines/e_ubsec.c b/engines/e_ubsec.c
index 02927d7b38..b019714a56 100644
--- a/engines/e_ubsec.c
+++ b/engines/e_ubsec.c
@@ -566,7 +566,6 @@ static int ubsec_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
UBSECerr(UBSEC_F_UBSEC_MOD_EXP, UBSEC_R_BN_EXPAND_FAIL);
return 0;
}
- memset(r->d, 0, BN_num_bytes(m));
if ((fd = p_UBSEC_ubsec_open(UBSEC_KEY_DEVICE_NAME)) <= 0) {
fd = 0;