diff options
author | Pauli <ppzgs1@gmail.com> | 2021-02-25 04:49:37 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-02-28 08:25:49 +0100 |
commit | 41df96efc150d3ccee01ab692d882ddba3d2d3d8 (patch) | |
tree | af2b9113e22f87c5f1dde3abad45f51ebf44ed8e /test/evp_test.c | |
parent | tls: updates for the new additional MAC_init arguments (diff) | |
download | openssl-41df96efc150d3ccee01ab692d882ddba3d2d3d8.tar.xz openssl-41df96efc150d3ccee01ab692d882ddba3d2d3d8.zip |
evp_test: updates for the new additional MAC_init arguments
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14310)
Diffstat (limited to 'test/evp_test.c')
-rw-r--r-- | test/evp_test.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/test/evp_test.c b/test/evp_test.c index d3b02a2e46..b9b1597be1 100644 --- a/test/evp_test.c +++ b/test/evp_test.c @@ -1279,11 +1279,6 @@ static int mac_test_run_mac(EVP_TEST *t) goto err; } } - if (expected->key != NULL) - params[params_n++] = - OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_KEY, - expected->key, - expected->key_len); if (expected->custom != NULL) params[params_n++] = OSSL_PARAM_construct_octet_string(OSSL_MAC_PARAM_CUSTOM, @@ -1339,11 +1334,7 @@ static int mac_test_run_mac(EVP_TEST *t) goto err; } - if (!EVP_MAC_CTX_set_params(ctx, params)) { - t->err = "MAC_BAD_PARAMS"; - goto err; - } - if (!EVP_MAC_init(ctx)) { + if (!EVP_MAC_init(ctx, expected->key, expected->key_len, params)) { t->err = "MAC_INIT_ERROR"; goto err; } |