Closed harisubash closed 3 years ago
Hi @harisubash , thanks for reporting this issue.
May I ask you what is the PKCS#11 library you are interfacing with?
Note that if you are using SoftHSMv2, the ability to wrap ED25519 and ED448 keys has just been committed to their repo, (https://github.com/opendnssec/SoftHSMv2/commit/6f866d041ddaee4f8e10fb98c6ab7eeb56bb8720) in their develop
branch, and is not part of an official release yet.
@keldonin Sorry I missed to mention that. You are right, I am using SoftHSMv2 library ( v2.6.1) Thank you so much for pointing out that it was not a part of the official release yet. While I wait for an official release, I will check it out from their "develop" branch as well.
Describe the bug C_WrapKey using AES key to wrap ED448 and ED25519 fails for CKM_AES_KEY_WRAP_PAD with CKR_KEY_NOT_WRAPPABLE
To Reproduce Steps to reproduce the behavior:
p11keygen -k ec -q prime256v1 -i prime256v1-17 CKA_EXTRACTABLE=true -W 'wrappingkey="aes-sharing",algorithm=rfc5649,filename="prime256v1-key-wrapped.seck"'
p11keygen -k ed -q ED25519 -i ED25519-17 CKA_EXTRACTABLE=true -W 'wrappingkey="aes-sharing",algorithm=rfc5649,filename="ED25519-key-wrapped.seck"'
Expected behavior
CKM_AES_KEY_WRAP_PAD should have been successful.
Screenshots
Operating System (please complete the following information):