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

Fix incompatible pointers arguments #430

Closed
wants to merge 1 commit into from
Closed
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
4 changes: 3 additions & 1 deletion pkcs11/tests/asym_wrap_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,14 +334,16 @@ static void get_wrapped_data(CK_OBJECT_HANDLE wrapping_keyid,
CK_RSA_PKCS_OAEP_PARAMS oaep_params = {CKM_SHA256, CKG_MGF1_SHA256, 0, NULL, 0};
CK_RSA_AES_KEY_WRAP_PARAMS params = {256, &oaep_params};
CK_MECHANISM mech = {0, &params, sizeof(params)};
CK_ULONG wrapped_len = *wrapped_obj_len;

if (only_key) {
mech.mechanism = CKM_RSA_AES_KEY_WRAP;
} else {
mech.mechanism = CKM_YUBICO_RSA_WRAP;
}
assert(p11->C_WrapKey(session, &mech, wrapping_keyid, keyid, wrapped_obj,
wrapped_obj_len) == CKR_OK);
&wrapped_len) == CKR_OK);
*wrapped_obj_len = wrapped_len;
}

static CK_OBJECT_HANDLE import_wrapped_data(CK_OBJECT_HANDLE wrapping_keyid,
Expand Down
Loading