diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2015-09-10 15:56:27 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2015-09-10 15:56:27 +0000 |
commit | 4b185770bb48b33b3458575b4dd273d9e9e5b60a (patch) | |
tree | fdb63280eeb935a98b2cf72fae41e177686c15ea /lib/libcrypto/des | |
parent | 3a518e4ad573c57d1cc478fe3257cbd80f7098fc (diff) |
Correct spelling of OPENSSL_cleanse.
ok miod@
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); } |