hkdf
HMAC-based Extract-and-Expand Key Derivation Function (HKDF) in pure V Language.
See
RFC 5869
Features
The default HKDF implementation on this module in the form of
DefaultHKDF
- Supports for wide range of fixed-sized hash algorithms as a backend, backed by hash algorihtm on the standard library, ie, SHA-2, SHA-3 and SHA-512. Its also support SHA-1 for compatibility purposes.
- Its also supports another hash algorithm as a backend, in the form of BLAKE2b and BLAKE2s. Its constructed with the same way on the how SHA-based digest was used, ie, the hash backend used to calculate hmac internally by using the checksum routine provided by this digest.
- Experimental supports for hash algorithm based on the an eXtensible Output Function (XOF) construct, ie, SHAKE128 and SHAKE256, that was availables on the standard library. This construct was commonly was not recommended, and its availables as experimental things. So, use with care. For this type of xof digest, the minimum and maximum size out internal digest output was limited to 16 into 4096 bytes respectively.