summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-09 22:22:21 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2014-06-09 22:22:21 +0000
commite216aa2f52f911ae503d69497fdb3426b5eaa235 (patch)
tree2b769432b01d2f18e83664ad4818fbf28d0f296a /lib
parent8719c3ca9dc507c4337865161e41d49cda40fa40 (diff)
use memset instead of bzero
Diffstat (limited to 'lib')
-rw-r--r--lib/libcrypto/engine/hw_cryptodev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/engine/hw_cryptodev.c b/lib/libcrypto/engine/hw_cryptodev.c
index 7700adf971d..c2a144f4eb6 100644
--- a/lib/libcrypto/engine/hw_cryptodev.c
+++ b/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);
}