Skip to content

Conversion from Hmac to HKDF #153

@Firstyear

Description

@Firstyear

The current api design makes the assumption that you can provide initial key material to expand, on that you have a prk that is able to create a new hmac instance.

However, if we don't have access to the key bytes directly (pkcs11, tpm), it would be good to be able to initialise a hkdf from an existing hmac instance provided that trait needed traits are satifised.

For example

let tpm_hmac = ...... ; // impls the needed Mac traits, output size user, etc. 

let hkdf = Hkdf::from<tpm_hmac>(tpm_hmac);

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