Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for SHA-based KDFs for ECDH #92

Open
beamer159 opened this issue Jun 9, 2022 · 2 comments · May be fixed by #239
Open

Add support for SHA-based KDFs for ECDH #92

beamer159 opened this issue Jun 9, 2022 · 2 comments · May be fixed by #239

Comments

@beamer159
Copy link

beamer159 commented Jun 9, 2022

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:

impl EcKdfType {
/// The null transformation. The derived key value is produced by
/// taking bytes from the left of the agreed value. The new key
/// size is limited to the size of the agreed value.
pub const NULL: EcKdfType = EcKdfType { val: CKD_NULL };
}

@ionut-arm
Copy link
Member

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

@hug-dev hug-dev linked a pull request Dec 22, 2024 that will close this issue
@hug-dev
Copy link
Member

hug-dev commented Dec 22, 2024

#239 does it for SHA256. It's not all you posted first but I guess we can close it after that, and re-open if more are still needed :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants