rust-cryptoki
rust-cryptoki copied to clipboard
Add support for SHA-based KDFs for ECDH
PKCS11 defines the following EC KDFs:
- CKD_NULL
- CKD_SHA1_KDF
- CKD_SHA224_KDF
- CKD_SHA256_KDF
- CKD_SHA384_KDF
- CKD_SHA512_KDF
It looks like the only currently supported KDF is CKD_NULL:
https://github.com/parallaxsecond/rust-cryptoki/blob/617efa846d67755d48708eb74e3d8149e184e83e/cryptoki/src/mechanism/elliptic_curve.rs#L46-L51
Hey! Thanks for the request - any chance you'd be up to contribute those?