I am using pkcs11interop to generate keys, and do wrap/unwrap. This is what I am using for my work https://github.com/Pkcs11Interop/Pkcs11Interop/blob/master/src/Pkcs11Interop/Pkcs11InteropTests/HighLevelAPI/_24_WrapAndUnwrapKeyTest.cs
I can generate ECDSA p-256. But the problem is that I want to wrap/unwrap ECDSA keys and I do not know which mechanism value (CKM_???) should be used. The sample above is using CKM_RSA_PKCS, and it is for RSA only. IMechanism mechanism = Settings.Factories.MechanismFactory.CreateMechanism(CKM.CKM_RSA_PKCS);
I also tried with several CKM for wrap/upwrap here http://wiki.ncryptoki.com/GetFile.aspx?File=%2fdocs%2fpkcs-11v2-20.pdf but it still fails.
if you have any information about this, please help share with me. Thanks a lot!