My Project
Functions
hmac.h File Reference

Go to the source code of this file.

Functions

int wc_HmacSetKey (Hmac *hmac, int type, const byte *key, word32 keySz)
 This function initializes an Hmac object, setting its encryption type, key and HMAC length. More...
 
int wc_HmacUpdate (Hmac *hmac, const byte *in, word32 sz)
 This function updates the message to authenticate using HMAC. It should be called after the Hmac object has been initialized with wc_HmacSetKey. This function may be called multiple times to update the message to hash. After calling wc_HmacUpdate as desired, one should call wc_HmacFinal to obtain the final authenticated message tag. More...
 
int wc_HmacFinal (Hmac *hmac, byte *out)
 This function computes the final hash of an Hmac object's message. More...
 
int wolfSSL_GetHmacMaxSize (void)
 This function returns the largest HMAC digest size available based on the configured cipher suites. More...
 
int wc_HKDF (int type, const byte *inKey, word32 inKeySz, const byte *salt, word32 saltSz, const byte *info, word32 infoSz, byte *out, word32 outSz)
 This function provides access to a HMAC Key Derivation Function (HKDF). It utilizes HMAC to convert inKey, with an optional salt and optional info into a derived key, which it stores in out. The hash type defaults to MD5 if 0 or NULL is given. More...