diff options
author | Richard Levitte <levitte@openssl.org> | 2002-11-28 08:09:03 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-11-28 08:09:03 +0000 |
commit | 75e3026a14339f3818fe57281979b7ee85399d43 (patch) | |
tree | ec56a26b6c553d120df76142a2b6241ac322b4c9 /crypto/ripemd | |
parent | 0a3af9a4038045ba59bcf10a4f9e0b6bb5107cd8 (diff) |
Cleanse memory using the new OPENSSL_cleanse() function.
I've covered all the memset()s I felt safe modifying, but may have missed some.
Diffstat (limited to 'crypto/ripemd')
-rw-r--r-- | crypto/ripemd/rmd_one.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ripemd/rmd_one.c b/crypto/ripemd/rmd_one.c index efdf2dd6ef..a783282282 100644 --- a/crypto/ripemd/rmd_one.c +++ b/crypto/ripemd/rmd_one.c @@ -70,7 +70,7 @@ unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, RIPEMD160_Init(&c); RIPEMD160_Update(&c,d,n); RIPEMD160_Final(md,&c); - memset(&c,0,sizeof(c)); /* security consideration */ + OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ return(md); } |