apache / incubator-milagro-crypto-rust

Apache Milagro Crypto Library - Rust Version
https://milagro.apache.org/
Apache License 2.0
31 stars 19 forks source link

HKDF #7

Closed kirk-baird closed 4 years ago

kirk-baird commented 5 years ago

Issue

As part of the BLS Standard HKDF is being used as part of the hash to curve function.

Required changes

1) Building HMAC's for the hashing algorithm according to this standard 2) Adding HKDF-Extract and HKDF-Extend from this standard.

Proposal

As the sha256/384/512 algorithms have already been implemented I suggest simply adding a hmac function and the two functions for HKDF to each of those structs.

kirk-baird commented 5 years ago

I've added these to a WIP branch

They still need significant testing.

kirk-baird commented 4 years ago

HKDF has been implemented here and tested here however is no longer required by the standard and so I'll close this issue.