parallaxsecond / rust-cryptoki

Rust wrapper for the PKCS #11 API, Cryptoki
https://docs.rs/cryptoki/
Apache License 2.0
69 stars 59 forks source link

Add support for SHA-based KDFs for ECDH #92

Open beamer159 opened 2 years ago

beamer159 commented 2 years ago

PKCS11 defines the following EC KDFs:

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

ionut-arm commented 2 years ago

Hey! Thanks for the request - any chance you'd be up to contribute those?