My Project
cmac.h
Go to the documentation of this file.
1 
29 int wc_InitCmac(Cmac* cmac,
30  const byte* key, word32 keySz,
31  int type, void* unused);
32 
63 int wc_InitCmac_ex(Cmac* cmac,
64  const byte* key, word32 keySz,
65  int type, void* unused, void* heap, int devId);
66 
85 int wc_CmacUpdate(Cmac* cmac,
86  const byte* in, word32 inSz);
87 
88 
108 int wc_CmacFinalNoFree(Cmac* cmac,
109  byte* out, word32* outSz);
110 
129 int wc_CmacFinal(Cmac* cmac,
130  byte* out, word32* outSz);
131 
149 int wc_CmacFree(Cmac* cmac);
150 
169 int wc_AesCmacGenerate(byte* out, word32* outSz,
170  const byte* in, word32 inSz,
171  const byte* key, word32 keySz);
172 
191 int wc_AesCmacVerify(const byte* check, word32 checkSz,
192  const byte* in, word32 inSz,
193  const byte* key, word32 keySz);
194 
195 
208 int wc_CMAC_Grow(Cmac* cmac, const byte* in, int inSz);
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...
int wc_CmacUpdate(Cmac *cmac, const byte *in, word32 inSz)
Add Cipher-based Message Authentication Code input data.
int wc_CmacFinalNoFree(Cmac *cmac, byte *out, word32 *outSz)
Generate the final result using Cipher-based Message Authentication Code, deferring context cleanup.
int wc_AesCmacVerify(const byte *check, word32 checkSz, const byte *in, word32 inSz, const byte *key, word32 keySz)
Single shot function for validating a CMAC.
int wc_CmacFree(Cmac *cmac)
Clean up allocations in a CMAC context.
int wc_InitCmac(Cmac *cmac, const byte *key, word32 keySz, int type, void *unused)
Initialize the Cmac structure with defaults.
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 function for generating a CMAC.
int wc_CmacFinal(Cmac *cmac, byte *out, word32 *outSz)
Generate the final result using Cipher-based Message Authentication Code, and clean up the context wi...