Cryptographic Interface header file for declaring AES-XCBC functions.
More...
Go to the source code of this file.
◆ CRYPTO_INTERFACE_AES_XCBC_clear()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_clear |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) AES_XCBC_MAC_96_Ctx * |
pCtx | ) |
|
This does free internally allocated AES contexts.
- Parameters
-
pCtx | Pointer to the context to be cleared. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_AES_XCBC_MAC_96_final()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_MAC_96_final |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) ubyte |
pCmac[12], |
|
|
AES_XCBC_MAC_96_Ctx * |
pCtx |
|
) |
| |
- Parameters
-
pCmac | Buffer that will hold the resulting MAC. It must be at least 12 bytes in length. |
pCtx | The already initialized and updated context to be finalized. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_AES_XCBC_MAC_96_init()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_MAC_96_init |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte |
pKeyMaterial[16], |
|
|
AES_XCBC_MAC_96_Ctx * |
pCtx |
|
) |
| |
Note this includes allocations of internal AES contexts. Note it is the callers responsibility to clear this object, and free its internals, by calling CRYPTO_INTERFACE_AES_XCBC_clear.
- Parameters
-
pKeyMaterial | Key material to be used for the mac operation. This must be 16 bytes. |
pCtx | Pointer to the context to be initialized. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_AES_XCBC_MAC_96_reset()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_MAC_96_reset |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) AES_XCBC_MAC_96_Ctx * |
pCtx | ) |
|
Note: This method is shared between AES_XCBC_MAC_96 and AES_XCBC_PRF_128. Call this method to perform the AES_XCBC_PRF_128_reset operation.
- Parameters
-
pCtx | Pointer to the context to be reset. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_AES_XCBC_MAC_96_update()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_MAC_96_update |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte * |
pData, |
|
|
sbyte4 |
dataLength, |
|
|
AES_XCBC_MAC_96_Ctx * |
pCtx |
|
) |
| |
Note: This method is shared between AES_XCBC_MAC_96 and AES_XCBC_PRF_128. Call this method to perform the AES_XCBC_PRF_128_update operation.
- Parameters
-
pData | The buffer of input data. |
dataLength | The length of pData in bytes. |
pCtx | The already initialized context to be updated. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_AES_XCBC_PRF_128_final()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_PRF_128_final |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) ubyte |
pCmac[16], |
|
|
AES_XCBC_PRF_128_Ctx * |
pCtx |
|
) |
| |
- Parameters
-
pCmac | Buffer that will hold the resulting MAC. It must be at least 16 bytes in length. |
pCtx | The already initialized and updated context to be finalized. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.
◆ CRYPTO_INTERFACE_AES_XCBC_PRF_128_init()
MOC_EXTERN MSTATUS CRYPTO_INTERFACE_AES_XCBC_PRF_128_init |
( |
MOC_SYM(hwAccelDescr hwAccelCtx) const ubyte |
pKeyMaterial[], |
|
|
sbyte4 |
keyLength, |
|
|
AES_XCBC_PRF_128_Ctx * |
pCtx |
|
) |
| |
Note it is the callers responsibility to clear this object after use by calling CRYPTO_INTERFACE_AES_XCBC_clear.
- Parameters
-
pKeyMaterial | Key material to be used for the mac operation. |
keyLength | The length of the buffer pKeyMaterial in bytes. This may be any size. |
pCtx | Pointer to the context to be initialized. |
- Returns
OK
(0) if successful, otherwise a negative number error code from merrors.h.