Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PATCH v3] validation: crypto: use basic op type when creating test data #1933

Merged
merged 1 commit into from
Oct 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/validation/api/crypto/odp_crypto_test_inp.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static int create_hash_test_reference(odp_auth_alg_t auth,
CU_ASSERT(rc == 0);

session.op = ODP_CRYPTO_OP_ENCODE;
session.op_type = ODP_CRYPTO_OP_TYPE_LEGACY;
session.op_type = ODP_CRYPTO_OP_TYPE_BASIC;
session.cipher_range_in_bits = false;
session.auth_range_in_bits = false;
if (session_create(&session, AUTH_PLAINTEXT, ref, HASH_NO_OVERLAP, false))
Expand All @@ -616,7 +616,7 @@ static int create_hash_test_reference(odp_auth_alg_t auth,
.auth_range = { .offset = 0, .length = auth_bytes },
.dst_offset_shift = 0,
};
rc = crypto_op(pkt, &pkt, &ok, &op_params, ODP_CRYPTO_OP_TYPE_LEGACY);
rc = crypto_op(pkt, &pkt, &ok, &op_params, ODP_CRYPTO_OP_TYPE_BASIC);

CU_ASSERT(rc == 0);
if (rc) {
Expand Down Expand Up @@ -807,7 +807,7 @@ static int crypto_encode_ref(crypto_test_reference_t *ref,
CU_ASSERT(rc == 0);

session.op = ODP_CRYPTO_OP_ENCODE;
session.op_type = ODP_CRYPTO_OP_TYPE_LEGACY;
session.op_type = ODP_CRYPTO_OP_TYPE_BASIC;
session.cipher_range_in_bits = false;
session.auth_range_in_bits = false;
if (session_create(&session, AUTH_PLAINTEXT, ref, HASH_OVERLAP, false)) {
Expand All @@ -834,7 +834,7 @@ static int crypto_encode_ref(crypto_test_reference_t *ref,
.auth_range = auth_range,
.dst_offset_shift = 0,
};
rc = crypto_op(pkt, &pkt, &ok, &op_params, ODP_CRYPTO_OP_TYPE_LEGACY);
rc = crypto_op(pkt, &pkt, &ok, &op_params, ODP_CRYPTO_OP_TYPE_BASIC);
CU_ASSERT(rc == 0);
if (rc) {
(void)odp_crypto_session_destroy(session.session);
Expand Down