#include <stdbool.h>
#include <stdint.h>
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <inc/hw_ints.h>
#include <inc/hw_crypto.h>
#include <driverlib/debug.h>
#include <driverlib/interrupt.h>
#include <driverlib/cpu.h>
Go to the source code of this file.
Functions | |
uint32_t | CRYPTOAesLoadKey (uint32_t *pui32AesKey, uint32_t ui32KeyLocation) |
Write the key into the Key Ram. More... | |
uint32_t | CRYPTOAesEcb (uint32_t *pui32MsgIn, uint32_t *pui32MsgOut, uint32_t ui32KeyLocation, bool bEncrypt, bool bIntEnable) |
Start an AES-ECB operation (encryption or decryption). More... | |
uint32_t | CRYPTOAesEcbStatus (void) |
Check the result of an AES ECB operation. More... | |
static void | CRYPTOAesEcbFinish (void) |
Finish the encryption operation by resetting the operation mode. More... | |
uint32_t | CRYPTOCcmAuthEncrypt (bool bEncrypt, uint32_t ui32AuthLength, uint32_t *pui32Nonce, uint32_t *pui32PlainText, uint32_t ui32PlainTextLength, uint32_t *pui32Header, uint32_t ui32HeaderLength, uint32_t ui32KeyLocation, uint32_t ui32FieldLength, bool bIntEnable) |
Start CCM operation. More... | |
uint32_t | CRYPTOCcmAuthEncryptStatus (void) |
Check the result of an AES CCM operation. More... | |
uint32_t | CRYPTOCcmAuthEncryptResultGet (uint32_t ui32TagLength, uint32_t *pui32CcmTag) |
Get the result of an AES CCM operation. More... | |
uint32_t | CRYPTOCcmInvAuthDecrypt (bool bDecrypt, uint32_t ui32AuthLength, uint32_t *pui32Nonce, uint32_t *pui32CipherText, uint32_t ui32CipherTextLength, uint32_t *pui32Header, uint32_t ui32HeaderLength, uint32_t ui32KeyLocation, uint32_t ui32FieldLength, bool bIntEnable) |
Start a CCM Decryption and Inverse Authentication operation. More... | |
uint32_t | CRYPTOCcmInvAuthDecryptStatus (void) |
Checks CCM decrypt and Inverse Authentication result. More... | |
uint32_t | CRYPTOCcmInvAuthDecryptResultGet (uint32_t ui32AuthLength, uint32_t *pui32CipherText, uint32_t ui32CipherTextLength, uint32_t *pui32CcmTag) |
Get the result of the CCM operation. More... | |
static uint32_t | CRYPTODmaStatus (void) |
Get the current status of the Crypto DMA controller. More... | |
void | CRYPTODmaEnable (uint32_t ui32Channels) |
Enable Crypto DMA operation. More... | |
void | CRYPTODmaDisable (uint32_t ui32Channels) |
Disable Crypto DMA operation. More... | |
static void | CRYPTOIntEnable (uint32_t ui32IntFlags) |
Enables individual Crypto interrupt sources. More... | |
static void | CRYPTOIntDisable (uint32_t ui32IntFlags) |
Disables individual CRYPTO interrupt sources. More... | |
static uint32_t | CRYPTOIntStatus (bool bMasked) |
Gets the current interrupt status. More... | |
static void | CRYPTOIntClear (uint32_t ui32IntFlags) |
Clears Crypto interrupt sources. More... | |
static void | CRYPTOIntRegister (void(*pfnHandler)(void)) |
Registers an interrupt handler for a Crypto interrupt. More... | |
static void | CRYPTOIntUnregister (void) |
Unregisters an interrupt handler for a Crypto interrupt. More... | |