From b5719e9673fdb411fb65e73c9f97e5ebdd06d802 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Fri, 16 Nov 2001 23:31:07 +0000 Subject: [PATCH] Use memset() instead of bzero(). --- crypto/engine/hw_ubsec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crypto/engine/hw_ubsec.c b/crypto/engine/hw_ubsec.c index 80a3c3cca9..0f7e08c5cb 100644 --- a/crypto/engine/hw_ubsec.c +++ b/crypto/engine/hw_ubsec.c @@ -59,6 +59,7 @@ */ #include +#include #include #include "cryptlib.h" #include @@ -509,7 +510,7 @@ static int ubsec_mod_exp(BIGNUM *r, BIGNUM *a, const BIGNUM *p, ENGINEerr(ENGINE_F_UBSEC_MOD_EXP, ENGINE_R_BN_EXPAND_FAIL); goto err; } - bzero(r->d, BN_num_bytes(m)); + memset(r->d, 0, BN_num_bytes(m)); if ((fd = p_UBSEC_ubsec_open(UBSEC_KEY_DEVICE_NAME)) <= 0) { -- 2.25.1