projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A few more memset()s converted to OPENSSL_cleanse().
[openssl.git]
/
crypto
/
md2
/
md2_dgst.c
diff --git
a/crypto/md2/md2_dgst.c
b/crypto/md2/md2_dgst.c
index f98009acad25efcd64f3c419b486c56b6b98cef3..47866c3c86fb07f0371665001b789d45c09898e2 100644
(file)
--- a/
crypto/md2/md2_dgst.c
+++ b/
crypto/md2/md2_dgst.c
@@
-196,7
+196,7
@@
static void md2_block(MD2_CTX *c, const unsigned char *d)
t=(t+i)&0xff;
}
memcpy(sp1,state,16*sizeof(MD2_INT));
-
memset(state,0
,48*sizeof(MD2_INT));
+
OPENSSL_cleanse(state
,48*sizeof(MD2_INT));
}
int MD2_Final(unsigned char *md, MD2_CTX *c)