![]() |
![]() |
This is the AES module header file for the register level AES driver. It defines various encryption modes supported by the AES module. More...
Macros | |
#define | AES_CFG_DIR_ENCRYPT (0x00000004U) |
#define | AES_CFG_KEY_SIZE_128BIT (0x00000008U) |
#define | AES_CFG_MODE_ECB (0x00000000U) |
#define | AES_CFG_MODE_CTR (0x00000040U) |
#define | AES_CFG_MODE_ICM (0x00000200U) |
#define | AES_CFG_MODE_CFB (0x00000400U) |
#define | AES_CFG_MODE_XTS_TWEAKJL (0x00000800U) |
#define | AES_CFG_MODE_F8 (0x00002000U) |
#define | AES_CFG_MODE_F9 (0x20004000U) |
#define | AES_CFG_MODE_CBCMAC (0x20008004U) |
#define | AES_CFG_MODE_GCM_HLY0ZERO (0x20010040U) |
#define | AES_CFG_MODE_CCM (0x20040040U) |
#define | AES_CFG_MODE_INVALID (0xFFFFFFFFU) |
#define | AES_CFG_CTR_WIDTH_32 (0x00000000U) |
#define | AES_CFG_MODE_CTR_32 (AES_CFG_MODE_CTR | AES_CFG_CTR_WIDTH_32) |
#define | AES_CFG_CCM_L_2 (0x00080000U) |
#define | AES_INT_CONTEXT_IN (0x00000001U) |
#define | AES_INT_DMA_CONTEXT_IN (0x00010000U) |
#define | AES_CTRL_CONTEXT_READY (0x80000000U) |
Functions | |
void | AES_init (AESRegs *aesBaseAddress) |
void | AES_config (AESRegs *baseAddress, uint32_t config) |
uint32_t | AES_isReady (const AESRegs *aesBaseAddress, uint32_t flag) |
void | AES_setKey1 (AESRegs *baseAddress, const uint8_t *ptrKey, uint32_t keySize) |
void | AES_setKey2 (AESRegs *baseAddress, const uint8_t *ptrKey, uint32_t keySize) |
void | AES_setKey3 (AESRegs *baseAddress, const uint8_t *ptrKey) |
void | AES_setIV (AESRegs *baseAddress, const uint8_t *ptrIVData) |
void | AES_getIV (AESRegs *baseAddress, uint8_t *ptrIVData) |
void | AES_readTag (const AESRegs *baseAddress, uint8_t *ptrTag) |
void | AES_setDataLength (AESRegs *baseAddress, uint64_t dataLen) |
void | AES_setAuthDataLength (AESRegs *baseAddress, uint32_t dataLen) |
void | AES_readDataBlocking (const AESRegs *baseAddress, uint8_t *ptrData, uint32_t dataLen) |
void | AES_writeDataBlocking (AESRegs *baseAddress, const uint8_t *ptrData, uint32_t dataLen) |
void | AES_enableInterrupt (DTHERegs *dtheBaseAddress, AESRegs *aesBaseAddress, uint32_t intFlags) |
void | AES_disableInterrupt (DTHERegs *dtheBaseAddress, AESRegs *aesBaseAddress, uint32_t intFlags) |
void | AES_clearInterrupt (DTHERegs *dtheBaseAddress, uint32_t intFlags) |
uint32_t | AES_getInterruptStatus (DTHERegs *dtheBaseAddress, AESRegs *aesBaseAddress, uint8_t masked) |
This is the AES module header file for the register level AES driver. It defines various encryption modes supported by the AES module.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
Neither the name of Texas Instruments Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.