projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Cleanse memory using the new OPENSSL_cleanse() function.
[openssl.git]
/
crypto
/
sha
/
sha_one.c
diff --git
a/crypto/sha/sha_one.c
b/crypto/sha/sha_one.c
index 5426faae4afd7874081e6402198cacdd343a9d4d..66b083144adc7bdcc87c0deeec0a3f81e806a4f6 100644
(file)
--- a/
crypto/sha/sha_one.c
+++ b/
crypto/sha/sha_one.c
@@
-70,7
+70,7
@@
unsigned char *SHA(const unsigned char *d, unsigned long n, unsigned char *md)
SHA_Init(&c);
SHA_Update(&c,d,n);
SHA_Final(md,&c);
-
memset(&c,0
,sizeof(c));
+
OPENSSL_cleanse(&c
,sizeof(c));
return(md);
}
#endif