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

PKCS#11 TA C_CopyObject doesn't work #6818

Open
embetrix opened this issue May 4, 2024 · 1 comment
Open

PKCS#11 TA C_CopyObject doesn't work #6818

embetrix opened this issue May 4, 2024 · 1 comment

Comments

@embetrix
Copy link

embetrix commented May 4, 2024

I created 2x ecdsa keypairs with flag CKA_COPYABLE

and used the following template to copy both public and private key from Object1 to Object2

    CK_ATTRIBUTE copyTemplate[] = {
        {CKA_TOKEN,     &true_val,       sizeof(CK_BBOOL)},
        {CKA_LABEL,     dest_label,      (CK_ULONG)strlen((char*)dest_label)},
        {CKA_ID,        dest_keyid,      KEYID_LEN },
    };

The operation return CKR_OK

But the Object2 is still different from Object1.

However this seems to be working with SoftHSM.

@etienne-lms
Copy link
Contributor

Do you mean the objects' attributes differ? Which ones differ? From your code spinet, i guess label and ID would differ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants