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

xtest: pkcs11_1021: skip CKM_RSA_PKCS test is not supported #763

Merged
merged 1 commit into from
Nov 26, 2024
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
6 changes: 6 additions & 0 deletions host/xtest/pkcs11_1000.c
Original file line number Diff line number Diff line change
Expand Up @@ -6758,6 +6758,10 @@ static int test_rsa_pkcs_operations(ADBG_Case_t *c,
signature_len = sizeof(signature);

rv = C_SignInit(session, &sign_mechanism, private_key);
if (rv == CKR_MECHANISM_INVALID) {
Do_ADBG_Log("CKM_RSA_PKCS is not supported (CFG_CRYPTO_RSASSA_NA1 maybe disabled), skip test");
goto non_prehashed_rsa_tests;
}
if (!ADBG_EXPECT_CK_OK(c, rv))
goto err_destr_obj;

Expand All @@ -6777,6 +6781,8 @@ static int test_rsa_pkcs_operations(ADBG_Case_t *c,
if (!ADBG_EXPECT_CK_OK(c, rv))
goto err_destr_obj;

non_prehashed_rsa_tests:

for (i = 0; i < ARRAY_SIZE(rsa_pkcs_sign_tests); i++) {
/*
* Note: this order of end/begin here is just to get ADBG
Expand Down