From e1b854f100e2e8f243d8afc553a6811b56a3ee4f Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Mon, 9 Jun 2014 22:22:20 +0000 Subject: use memset instead of bzero --- src/lib/libcrypto/engine/hw_cryptodev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/engine/hw_cryptodev.c') diff --git a/src/lib/libcrypto/engine/hw_cryptodev.c b/src/lib/libcrypto/engine/hw_cryptodev.c index 7700adf971..c2a144f4eb 100644 --- a/src/lib/libcrypto/engine/hw_cryptodev.c +++ b/src/lib/libcrypto/engine/hw_cryptodev.c @@ -743,7 +743,7 @@ xcrypt_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, int i; #endif - bzero(k, sizeof *k); + memset(k, 0, sizeof *k); if (enc) AES_set_encrypt_key(key, ctx->key_len * 8, k); else @@ -765,7 +765,7 @@ xcrypt_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key, static int xcrypt_cleanup(EVP_CIPHER_CTX *ctx) { - bzero(ctx->cipher_data, ctx->cipher->ctx_size); + memset(ctx->cipher_data, 0, ctx->cipher->ctx_size); return (1); } -- cgit v1.2.3-55-g6feb