rust-cryptoki icon indicating copy to clipboard operation
rust-cryptoki copied to clipboard

Add support for SHA-based KDFs for ECDH

Open beamer159 opened this issue 2 years ago • 1 comments

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

beamer159 avatar Jun 09 '22 19:06 beamer159

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

ionut-arm avatar Jun 10 '22 09:06 ionut-arm