19 #ifndef __CRYPTO_INTERFACE_AES_CMAC_HEADER__ 20 #define __CRYPTO_INTERFACE_AES_CMAC_HEADER__ 40 MOC_SYM(hwAccelDescr hwAccelCtx)
const ubyte *pKeyMaterial,
60 MOC_SYM(hwAccelDescr hwAccelCtx)
const ubyte *pKeyMaterial,
78 MOC_SYM(hwAccelDescr hwAccelCtx)
const ubyte *pData,
96 MOC_SYM(hwAccelDescr hwAccelCtx)
const ubyte *pData,
113 MOC_SYM(hwAccelDescr hwAccelCtx) ubyte cmac[16],
129 MOC_SYM(hwAccelDescr hwAccelCtx) ubyte cmac[CMAC_RESULT_SIZE],
143 MOC_SYM(hwAccelDescr hwAccelCtx) AESCMAC_Ctx* pCtx
158 MOC_SYM(hwAccelDescr hwAccelCtx) AESCMAC_Ctx *pDest,
175 MOC_SYM(hwAccelDescr hwAccelCtx) ubyte cmac[16],
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_initExt(MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte *pKeyMaterial, sbyte4 keyLength, AESCMAC_Ctx *pCtx, void *pExtCtx)
Creates and initializes a new AESCMAC_Ctx context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_cloneCtx(MOC_SYM(hwAccelDescr hwAccelCtx) AESCMAC_Ctx *pDest, AESCMAC_Ctx *pSrc)
Makes a clone of a previously allocated AESCMAC_Ctx.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_clear(MOC_SYM(hwAccelDescr hwAccelCtx) AESCMAC_Ctx *pCtx)
Frees the internal AES Context and zeros the outer context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_init(MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte *pKeyMaterial, sbyte4 keyLength, AESCMAC_Ctx *pCtx)
Creates and initializes a new AESCMAC_Ctx context.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_finalAndReset(MOC_SYM(hwAccelDescr hwAccelCtx) ubyte cmac[16], AESCMAC_Ctx *pCtx)
Finalizes a context and outputs the resulting CMAC.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_update(MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte *pData, sbyte4 dataLength, AESCMAC_Ctx *pCtx)
Updates a previously initialized context with the data or portion thereof.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_updateExt(MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte *pData, sbyte4 dataLength, AESCMAC_Ctx *pCtx, void *pExtCtx)
Updates a previously initialized context with the data or portion thereof.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_final(MOC_SYM(hwAccelDescr hwAccelCtx) ubyte cmac[16], AESCMAC_Ctx *pCtx)
Finalizes a context and outputs the resulting CMAC.
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AESCMAC_finalExt(MOC_SYM(hwAccelDescr hwAccelCtx) ubyte cmac[CMAC_RESULT_SIZE], AESCMAC_Ctx *pCtx, void *pExtCtx)
Finalizes a context and outputs the resulting CMAC.