-/* crypto/hmac/hmactest.c */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
}
printf("test 4 ok\n");
test5:
- HMAC_CTX_cleanup(ctx);
- HMAC_CTX_init(ctx);
+ HMAC_CTX_reset(ctx);
if (HMAC_Init_ex(ctx, test[4].key, test[4].key_len, NULL, NULL)) {
printf("Should fail to initialise HMAC with empty MD (test 5)\n");
err++;
printf("test 5 ok\n");
}
test6:
- HMAC_CTX_cleanup(ctx);
- HMAC_CTX_init(ctx);
+ HMAC_CTX_reset(ctx);
ctx2 = HMAC_CTX_new();
if (ctx2 == NULL) {
printf("HMAC malloc failure (test 6)\n");