diff options
Diffstat (limited to 'src/lib/libcrypto/ripemd/rmd_one.c')
| -rw-r--r-- | src/lib/libcrypto/ripemd/rmd_one.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/ripemd/rmd_one.c b/src/lib/libcrypto/ripemd/rmd_one.c index efdf2dd6ef..f8b580c33a 100644 --- a/src/lib/libcrypto/ripemd/rmd_one.c +++ b/src/lib/libcrypto/ripemd/rmd_one.c | |||
| @@ -59,6 +59,7 @@ | |||
| 59 | #include <stdio.h> | 59 | #include <stdio.h> |
| 60 | #include <string.h> | 60 | #include <string.h> |
| 61 | #include <openssl/ripemd.h> | 61 | #include <openssl/ripemd.h> |
| 62 | #include <openssl/crypto.h> | ||
| 62 | 63 | ||
| 63 | unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, | 64 | unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, |
| 64 | unsigned char *md) | 65 | unsigned char *md) |
| @@ -70,7 +71,7 @@ unsigned char *RIPEMD160(const unsigned char *d, unsigned long n, | |||
| 70 | RIPEMD160_Init(&c); | 71 | RIPEMD160_Init(&c); |
| 71 | RIPEMD160_Update(&c,d,n); | 72 | RIPEMD160_Update(&c,d,n); |
| 72 | RIPEMD160_Final(md,&c); | 73 | RIPEMD160_Final(md,&c); |
| 73 | memset(&c,0,sizeof(c)); /* security consideration */ | 74 | OPENSSL_cleanse(&c,sizeof(c)); /* security consideration */ |
| 74 | return(md); | 75 | return(md); |
| 75 | } | 76 | } |
| 76 | 77 | ||
