Skip to content

Add support for SHA-based KDFs for ECDH #92

@beamer159

Description

@beamer159

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 };
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions