diff options
Diffstat (limited to 'lib/libcrypto/des')
-rw-r--r-- | lib/libcrypto/des/str2key.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/des/str2key.c b/lib/libcrypto/des/str2key.c index 8999eb292a7..ce17e2659b3 100644 --- a/lib/libcrypto/des/str2key.c +++ b/lib/libcrypto/des/str2key.c @@ -1,4 +1,4 @@ -/* $OpenBSD: str2key.c,v 1.9 2014/10/28 07:35:58 jsg Exp $ */ +/* $OpenBSD: str2key.c,v 1.10 2015/09/10 15:56:25 jsing Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -95,7 +95,7 @@ void DES_string_to_key(const char *str, DES_cblock *key) DES_set_key_unchecked(key,&ks); #endif DES_cbc_cksum((const unsigned char*)str,key,length,&ks,key); - OPENSSL_cleanse(&ks,sizeof(ks)); + explicit_bzero(&ks,sizeof(ks)); DES_set_odd_parity(key); } @@ -168,7 +168,7 @@ void DES_string_to_2keys(const char *str, DES_cblock *key1, DES_cblock *key2) DES_set_key_unchecked(key2,&ks); #endif DES_cbc_cksum((const unsigned char*)str,key2,length,&ks,key2); - OPENSSL_cleanse(&ks,sizeof(ks)); + explicit_bzero(&ks,sizeof(ks)); DES_set_odd_parity(key1); DES_set_odd_parity(key2); } |