class HKDF
Defined at line 25 of file ../../src/security/lib/fcrypto/hkdf.h
Public Methods
void HKDF ()
Public methods
Defined at line 33 of file ../../src/security/lib/fcrypto/hkdf.cc
void ~HKDF ()
Defined at line 34 of file ../../src/security/lib/fcrypto/hkdf.cc
zx_status_t Init (digest::Algorithm digest, const Secret & ikm, const Bytes & salt, uint16_t flags)
Initializes the HKDF algorithms indicated by |digest| with the input key material in |ikm|
and the given |salt|. Callers must omit |flags| unless the security implications are clearly
understood.
Defined at line 36 of file ../../src/security/lib/fcrypto/hkdf.cc
zx_status_t Derive (const char * label, size_t len, Bytes * out)
Fill |out| with |len| bytes of output key material. The key material will depend on the
|ikm| and |salt| given in |Init|, as well as the |label| provided here. |out_key| will be
the same if and only if all of those parameters are unchanged.
Defined at line 75 of file ../../src/security/lib/fcrypto/hkdf.cc
zx_status_t Derive (const char * label, size_t len, Secret * out)
Defined at line 85 of file ../../src/security/lib/fcrypto/hkdf.cc
Enumerations
enum Flags
| Name | Value |
|---|---|
| ALLOW_WEAK_KEY | 0x0001 |
Defined at line 27 of file ../../src/security/lib/fcrypto/hkdf.h