My Project
hmac.h
Go to the documentation of this file.
1 
35 int wc_HmacSetKey(Hmac* hmac, int type, const byte* key, word32 keySz);
36 
71 int wc_HmacUpdate(Hmac* hmac, const byte* in, word32 sz);
72 
102 int wc_HmacFinal(Hmac* hmac, byte* out);
103 
123 
172 int wc_HKDF(int type, const byte* inKey, word32 inKeySz,
173  const byte* salt, word32 saltSz,
174  const byte* info, word32 infoSz,
175  byte* out, word32 outSz);
176 
177 
225  int type,
226  const byte* salt, word32 saltSz,
227  const byte* inKey, word32 inKeySz,
228  byte* out);
229 
280  int type,
281  const byte* salt, word32 saltSz,
282  const byte* inKey, word32 inKeySz,
283  byte* out,
284  void* heap, int devId);
285 
335  int type,
336  const byte* inKey, word32 inKeySz,
337  const byte* info, word32 infoSz,
338  byte* out, word32 outSz);
339 
392  int type,
393  const byte* inKey, word32 inKeySz,
394  const byte* info, word32 infoSz,
395  byte* out, word32 outSz,
396  void* heap, int devId);
397 
439  byte* prk,
440  const byte* salt, word32 saltLen,
441  byte* ikm, word32 ikmLen, int digest);
442 
486  byte* prk,
487  const byte* salt, word32 saltLen,
488  byte* ikm, word32 ikmLen, int digest,
489  void* heap, int devId);
490 
525  byte* okm, word32 okmLen,
526  const byte* prk, word32 prkLen,
527  const byte* protocol, word32 protocolLen,
528  const byte* label, word32 labelLen,
529  const byte* info, word32 infoLen,
530  int digest,
531  void* heap, int devId);
532 
565  byte* okm, word32 okmLen,
566  const byte* prk, word32 prkLen,
567  const byte* protocol, word32 protocolLen,
568  const byte* label, word32 labelLen,
569  const byte* info, word32 infoLen,
570  int digest);
571 
606  byte* okm, word32 okmLen,
607  const byte* prk, word32 prkLen,
608  const byte* protocol, word32 protocolLen,
609  const byte* label, word32 labelLen,
610  const byte* info, word32 infoLen,
611  int digest, void* heap);
int wolfSSL_GetHmacMaxSize(void)
This function returns the largest HMAC digest size available based on the configured cipher suites.
int wc_Tls13_HKDF_Extract(byte *prk, const byte *salt, word32 saltLen, byte *ikm, word32 ikmLen, int digest)
This function provides access to RFC 5869 HMAC-based Extract-and-Expand Key Derivation Function (HKDF...
int wc_HKDF_Expand_ex(int type, const byte *inKey, word32 inKeySz, const byte *info, word32 infoSz, byte *out, word32 outSz, void *heap, int devId)
This function provides access to a HMAC Key Derivation Function (HKDF). It utilizes HMAC to convert i...
int wc_HmacFinal(Hmac *hmac, byte *out)
This function computes the final hash of an Hmac object's message.
int wc_HKDF_Expand(int type, const byte *inKey, word32 inKeySz, 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 i...
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 obje...
int wc_Tls13_HKDF_Expand_Label_Alloc(byte *okm, word32 okmLen, const byte *prk, word32 prkLen, const byte *protocol, word32 protocolLen, const byte *label, word32 labelLen, const byte *info, word32 infoLen, int digest, void *heap)
This functions is very similar to wc_Tls13_HKDF_Expand_Label(), but it allocates memory if the stack ...
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.
int wc_HKDF_Extract_ex(int type, const byte *salt, word32 saltSz, const byte *inKey, word32 inKeySz, byte *out, void *heap, int devId)
This function provides access to a HMAC Key Derivation Function (HKDF). It utilizes HMAC to convert i...
int wc_HKDF_Extract(int type, const byte *salt, word32 saltSz, const byte *inKey, word32 inKeySz, byte *out)
This function provides access to a HMAC Key Derivation Function (HKDF). It utilizes HMAC to convert i...
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 i...
int wc_Tls13_HKDF_Expand_Label(byte *okm, word32 okmLen, const byte *prk, word32 prkLen, const byte *protocol, word32 protocolLen, const byte *label, word32 labelLen, const byte *info, word32 infoLen, int digest)
Expand data using HMAC, salt and label and info. TLS v1.3 defines this function for key derivation....
int wc_Tls13_HKDF_Expand_Label_ex(byte *okm, word32 okmLen, const byte *prk, word32 prkLen, const byte *protocol, word32 protocolLen, const byte *label, word32 labelLen, const byte *info, word32 infoLen, int digest, void *heap, int devId)
Expand data using HMAC, salt and label and info. TLS v1.3 defines this function for key derivation....
int wc_Tls13_HKDF_Extract_ex(byte *prk, const byte *salt, word32 saltLen, byte *ikm, word32 ikmLen, int digest, void *heap, int devId)
This function provides access to RFC 5869 HMAC-based Extract-and-Expand Key Derivation Function (HKDF...