pub const MAX_HMAC_OUTPUT_LEN: usize = 64;Expand description
The size of the output key material from the HKDF-Extract phase prk, in bytes.
This has been sized so that the output KeyMaterial has enough capacity to accommodate the
underlying hash primitive with the largest output size.
If the given hash function has a smaller output size, then the output KeyMaterial will be
under-full (ie have a key_len that does not use its full capacity).
TODO: This is a dirty dirty hack because correctly sizing the output key
really requires the generic_const_exprs feature, which is currently only available on
nightly Rust, and not on stable. Once they merge that feature, we will be able to get rid of this
and declare prk: &mut KeyMaterial<H::OUTPUT_LEN> instead of this hack.