Skip to content

xtest: pkcs11: Add all attributes for RSA AES Key Wrap/Unwrap #790

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

anvisriv
Copy link

@anvisriv anvisriv commented Apr 6, 2025

This change adds all the attributes for RSA AES Keypair Generation.

anvisriv added 2 commits April 6, 2025 19:14
Modified test 1019 to use digest_test_pattern_sha512 instead
of digest_test_pattern_sha256.
This change adds all the attributes for RSA AES Keypair
Generation
@anvisriv
Copy link
Author

Hi @etienne-lms
Can you please review?

Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @anvisriv, sorry again for my late feedback.

See my comments for commit "xtest: pkcs11: Add all attributes for RSA AES Key Wrap/Unwrap".

Could remove commit "xtest: pkcs11: Update test_digest for test 1019 to use SHA-512" from this P-R. It is already reviewed through your P-R 5be9078.

{ CKA_EXPONENT_2, (CK_VOID_PTR)t->key.exp2,
t->key.prime2_len },
{ CKA_COEFFICIENT, (CK_VOID_PTR)t->key.coeff,
t->key.coeff_len },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This info used here (t->key.*) belong to the wrapping key, not the to target wrapped/unwrapped key which target_key_template relates to.

{ CKA_EXPONENT_2, (CK_VOID_PTR)t->key.exp2,
t->key.prime2_len },
{ CKA_COEFFICIENT, (CK_VOID_PTR)t->key.coeff,
t->key.coeff_len },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These attributes relate the private keys whereas wrapping_key_template defines a public key.

{ CKA_EXPONENT_2, (CK_VOID_PTR)t->key.exp2,
t->key.prime2_len },
{ CKA_COEFFICIENT, (CK_VOID_PTR)t->key.coeff,
t->key.coeff_len },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this information are needed. They can be recomputed by the pkcs11 token based on the provided CKA_PRIVATE_EXPONENT, CKA_PRIME_1 and CKA_PRIME_2 attributes.

@anvisriv
Copy link
Author

Commenting it so that issue is not marked stale

1 similar comment
@anvisriv
Copy link
Author

anvisriv commented Jun 3, 2025

Commenting it so that issue is not marked stale

Copy link

github-actions bot commented Jul 4, 2025

This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note that you can always re-open a closed pull request at any time.

@github-actions github-actions bot added the Stale label Jul 4, 2025
@anvisriv
Copy link
Author

anvisriv commented Jul 4, 2025

Keeping it alive

@github-actions github-actions bot removed the Stale label Jul 5, 2025
@anvisriv
Copy link
Author

Keeping it alive

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

Successfully merging this pull request may close these issues.

2 participants