diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2002-03-14 18:22:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2002-03-14 18:22:23 +0000 |
commit | de941e289e5d320d2e3258b0ebf71562830aaabc (patch) | |
tree | 082d81fe05a8c694a71a531dbe3eab7495773b17 /apps | |
parent | 1d2845352926df66db5798cfebf3784f6af59b8c (diff) |
Initialize cipher context in KRB5
("D. Russell" <russelld@aol.net>)
Allow HMAC functions to use an alternative ENGINE.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/speed.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/speed.c b/apps/speed.c index e817a0df15..95979e509f 100644 --- a/apps/speed.c +++ b/apps/speed.c @@ -1138,7 +1138,7 @@ int MAIN(int argc, char **argv) HMAC_CTX_init(&hctx); HMAC_Init_ex(&hctx,(unsigned char *)"This is a key...", - 16,EVP_md5()); + 16,EVP_md5(), NULL); for (j=0; j<SIZE_NUM; j++) { @@ -1146,9 +1146,9 @@ int MAIN(int argc, char **argv) Time_F(START); for (count=0,run=1; COND(c[D_HMAC][j]); count++) { - HMAC_Init_ex(&hctx,NULL,0,NULL); - HMAC_Update(&hctx,buf,lengths[j]); - HMAC_Final(&hctx,&(hmac[0]),NULL); + HMAC_Init_ex(&hctx,NULL,0,NULL,NULL); + HMAC_Update(&hctx,buf,lengths[j]); + HMAC_Final(&hctx,&(hmac[0]),NULL); } d=Time_F(STOP); print_result(D_HMAC,j,count,d); |