Skip to content

When trying to retrieve the value of a pubkey using the Value Attribute the vector is coming empty #137

Answered by baloo
shivam560 asked this question in Q&A
Discussion options

You must be logged in to vote

You are requesting the CHECK_VALUE attribute in the new_pub_key variable:
https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/cs01/pkcs11-spec-v3.1-cs01.html#_Toc111203232

CKA_CHECK_VALUE | Byte   array | Key   checksum

I'm not sure this what you intend to use.
I think you're looking for CKA_MODULUS and CKA_PUBLIC_EXPONENT for an RSA key

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@ionut-arm
Comment options

Answer selected by wiktor-k
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants