summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/evp/e_idea.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/libcrypto/evp/e_idea.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/e_idea.c b/src/lib/libcrypto/evp/e_idea.c
index 3ba4dbcdb9..454ad4e672 100644
--- a/src/lib/libcrypto/evp/e_idea.c
+++ b/src/lib/libcrypto/evp/e_idea.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: e_idea.c,v 1.9 2014/07/11 08:44:48 jsing Exp $ */ 1/* $OpenBSD: e_idea.c,v 1.10 2015/09/10 15:56:25 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -57,6 +57,7 @@
57 */ 57 */
58 58
59#include <stdio.h> 59#include <stdio.h>
60#include <string.h>
60 61
61#include <openssl/opensslconf.h> 62#include <openssl/opensslconf.h>
62 63
@@ -115,7 +116,7 @@ idea_init_key(EVP_CIPHER_CTX *ctx, const unsigned char *key,
115 116
116 idea_set_encrypt_key(key, &tmp); 117 idea_set_encrypt_key(key, &tmp);
117 idea_set_decrypt_key(&tmp, ctx->cipher_data); 118 idea_set_decrypt_key(&tmp, ctx->cipher_data);
118 OPENSSL_cleanse((unsigned char *)&tmp, 119 explicit_bzero((unsigned char *)&tmp,
119 sizeof(IDEA_KEY_SCHEDULE)); 120 sizeof(IDEA_KEY_SCHEDULE));
120 } 121 }
121 return 1; 122 return 1;