-
Notifications
You must be signed in to change notification settings - Fork 134
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
Add CK_RSA_AES_KEY_WRAP_PARAMS to params.go #155
Comments
[ Quoting ***@***.***> in "[miekg/pkcs11] Add CK_RSA_AES_KEY_W..." ]
I'm building a tool that calls the WrapKey/UnwrapKey. I'm able to perform
Wrapping/Unwrapping against:
1. An AES key with RSA Keypair.
2. An RSA Private Key with AES Key.
But I'm unable to perform Wrapping/Unwrapping of an RSA Private Key with
another RSA Key Pair. According to the PKCS 11 documentation (both 2.40 and 3.0
versions), section called "RSA AES KEY WRAP mechanism parameters" requires the
use of parameter called "CK_RSA_AES_KEY_WRAP_PARAMS".
Could the "CK_RSA_AES_KEY_WRAP_PARAMS" be added to the library?
Oh, this is a typedef. Unsure how to programmatically include them in zconst.go
|
I was thinking more on creating a new type in params.go. Like GMCParams or OAEPParams. Something like the following:
And then:
Does this make sence? |
But why does this wrapping need new code, while the other ones just work?
|
The wrap mechanism denoted CKM_RSA_AES_KEY_WRAP, has the parameter CK_RSA_AES_KEY_WRAP_PARAMS structure. Without this parameter, I'm unable to use this mechanism. |
[ Quoting ***@***.***> in "Re: [miekg/pkcs11] Add CK_RSA_AES_K..." ]
The wrap mechanism denoted CKM_RSA_AES_KEY_WRAP, has the parameter
CK_RSA_AES_KEY_WRAP_PARAMS structure.
Without this parameter, I'm unable to use this mechanism.
hmm, there is a bunch of manual code in params.go, wish that could also be generated,
but looks too complex to make that happen.
|
Please have a look at the PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm building a tool that calls the WrapKey/UnwrapKey. I'm able to perform Wrapping/Unwrapping against:
But I'm unable to perform Wrapping/Unwrapping of an RSA Private Key with another RSA Key Pair. According to the PKCS 11 documentation (both 2.40 and 3.0 versions), section called "RSA AES KEY WRAP mechanism parameters" requires the use of parameter called "CK_RSA_AES_KEY_WRAP_PARAMS".
Could the "CK_RSA_AES_KEY_WRAP_PARAMS" be added to the library?
The text was updated successfully, but these errors were encountered: