aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/evp/e_idea.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/evp/e_idea.c')
-rw-r--r--crypto/evp/e_idea.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/e_idea.c b/crypto/evp/e_idea.c
index ed838d3e62..b9efa75ae7 100644
--- a/crypto/evp/e_idea.c
+++ b/crypto/evp/e_idea.c
@@ -109,7 +109,7 @@ static int idea_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
idea_set_encrypt_key(key,&tmp);
idea_set_decrypt_key(&tmp,ctx->cipher_data);
- memset((unsigned char *)&tmp,0,
+ OPENSSL_cleanse((unsigned char *)&tmp,
sizeof(IDEA_KEY_SCHEDULE));
}
return 1;