Closed mskalski closed 2 years ago
Needs some further testing - RSAOAEP fails on appveyor (because of void *
mapping in swig)
From the Linux build & test I see:
test_RSA_OAEP (test_asymetric.TestUtil) ... make: *** [Makefile:45: tests] Segmentation fault (core dumped) Error: Process completed with exit code 2.
Yes, it's because I changed mapping for void *
to match assignment from ckbytelist
to fields of CK_ECDH1_DERIVE_PARAMS
. Definitely it needs some more changes.
But I didn't notice MR #72. Maybe consider joining them?
Feel free to reuse code or inspiration from PR #72
This PR does not need to change the void *
mapping. So it is better for me.
What would be really nice is to have code in test/
to test this new feature using SoftHSM.
I guess this feature is now fixed with https://github.com/LudovicRousseau/PyKCS11/commit/c6580f49a9ea7b04104515a74ecfebb53faa09a8
Add support for
CKM_ECDH1_DERIVE
mechanism - add definitions of required structures and implementedC_DeriveKey()
function.Works well with IDPrime card.
Note: All DH mechanisms shall be aded (not only ECDH1)