mirror of
https://github.com/openssl/openssl.git
synced 2025-01-30 14:01:55 +08:00
Look up MD5 by name.
This commit is contained in:
parent
f1047cebea
commit
7d34470458
@ -977,7 +977,7 @@ int MAIN(int argc, char **argv)
|
|||||||
print_message(names[D_MD5],c[D_MD5][j],lengths[j]);
|
print_message(names[D_MD5],c[D_MD5][j],lengths[j]);
|
||||||
Time_F(START,usertime);
|
Time_F(START,usertime);
|
||||||
for (count=0,run=1; COND(c[D_MD5][j]); count++)
|
for (count=0,run=1; COND(c[D_MD5][j]); count++)
|
||||||
EVP_Digest(&(buf[0]),(unsigned long)lengths[j],&(md5[0]),NULL,EVP_md5());
|
EVP_Digest(&(buf[0]),(unsigned long)lengths[j],&(md5[0]),NULL,EVP_get_digestbyname("md5"));
|
||||||
d=Time_F(STOP,usertime);
|
d=Time_F(STOP,usertime);
|
||||||
BIO_printf(bio_err,"%ld %s's in %.2fs\n",
|
BIO_printf(bio_err,"%ld %s's in %.2fs\n",
|
||||||
count,names[D_MD5],d);
|
count,names[D_MD5],d);
|
||||||
|
Loading…
Reference in New Issue
Block a user