cmac.h
Go to the documentation of this file.
1 
27 int wc_InitCmac(Cmac* cmac,
28  const byte* key, word32 keySz,
29  int type, void* unused);
30 
59 int wc_InitCmac_ex(Cmac* cmac,
60  const byte* key, word32 keySz,
61  int type, void* unused, void* heap, int devId);
62 
79 int wc_CmacUpdate(Cmac* cmac,
80  const byte* in, word32 inSz);
81 
98 int wc_CmacFinal(Cmac* cmac,
99  byte* out, word32* outSz);
100 
119 int wc_AesCmacGenerate(byte* out, word32* outSz,
120  const byte* in, word32 inSz,
121  const byte* key, word32 keySz);
122 
141 int wc_AesCmacVerify(const byte* check, word32 checkSz,
142  const byte* in, word32 inSz,
143  const byte* key, word32 keySz);
144 
145 
158 int wc_CMAC_Grow(Cmac* cmac, const byte* in, int inSz);
int wc_AesCmacVerify(const byte *check, word32 checkSz, const byte *in, word32 inSz, const byte *key, word32 keySz)
Single shot fuction for validating a CMAC.
int wc_InitCmac_ex(Cmac *cmac, const byte *key, word32 keySz, int type, void *unused, void *heap, int devId)
Initialize the Cmac structure with defaults.
int wc_AesCmacGenerate(byte *out, word32 *outSz, const byte *in, word32 inSz, const byte *key, word32 keySz)
Single shot fuction for generating a CMAC.
int wc_CmacFinal(Cmac *cmac, byte *out, word32 *outSz)
Generate the final result using Cipher-based Message Authentication Code.
int wc_CmacUpdate(Cmac *cmac, const byte *in, word32 inSz)
Add Cipher-based Message Authentication Code input data.
int wc_InitCmac(Cmac *cmac, const byte *key, word32 keySz, int type, void *unused)
Initialize the Cmac structure with defaults.
int wc_CMAC_Grow(Cmac *cmac, const byte *in, int inSz)
Only used with WOLFSSL_HASH_KEEP when hardware requires single-shot and the updates must be cached in...