diff options
author | steve <steve> | 2001-06-19 22:29:55 +0000 |
---|---|---|
committer | steve <steve> | 2001-06-19 22:29:55 +0000 |
commit | 290b3ed95cff781d6fad1f693ffb043955a11455 (patch) | |
tree | d30faf9a2fb21a1618248b58a80385331db974e3 /crypto/ripemd | |
parent | 092e566232f902001e25efc439e447cc86d79e2d (diff) | |
download | openssl-290b3ed95cff781d6fad1f693ffb043955a11455.tar.gz |
Change all calls to low level digest routines in the library and
applications to use EVP. Add missing calls to HMAC_cleanup() and
don't assume HMAC_CTX can be copied using memcpy().
Note: this is almost identical to the patch submitted to openssl-dev
by Verdon Walker <VWalker@novell.com> except some redundant
EVP_add_digest_()/EVP_cleanup() calls were removed and some changes
made to avoid compiler warnings.
Diffstat (limited to 'crypto/ripemd')
-rw-r--r-- | crypto/ripemd/rmdtest.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/ripemd/rmdtest.c b/crypto/ripemd/rmdtest.c index 6bc90d5af..e1aae630e 100644 --- a/crypto/ripemd/rmdtest.c +++ b/crypto/ripemd/rmdtest.c @@ -67,7 +67,7 @@ int main(int argc, char *argv[]) return(0); } #else -#include <openssl/ripemd.h> +#include <openssl/evp.h> #ifdef CHARSET_EBCDIC #include <openssl/ebcdic.h> @@ -102,6 +102,7 @@ int main(int argc, char *argv[]) int i,err=0; unsigned char **P,**R; char *p; + unsigned char md[RIPEMD160_DIGEST_LENGTH]; P=(unsigned char **)test; R=(unsigned char **)ret; @@ -111,7 +112,8 @@ int main(int argc, char *argv[]) #ifdef CHARSET_EBCDIC ebcdic2ascii((char *)*P, (char *)*P, strlen((char *)*P)); #endif - p=pt(RIPEMD160(&(P[0][0]),(unsigned long)strlen((char *)*P),NULL)); + EVP_Digest(&(P[0][0]),(unsigned long)strlen((char *)*P),md,NULL,EVP_ripemd160()); + p=pt(md); if (strcmp(p,(char *)*R) != 0) { printf("error calculating RIPEMD160 on '%s'\n",*P); |