|
|
Go to the documentation of this file. 46 #define AES_O_KEY2_6 0x00000000 // AES Key 2_6 47 #define AES_O_KEY2_7 0x00000004 // AES Key 2_7 48 #define AES_O_KEY2_4 0x00000008 // AES Key 2_4 49 #define AES_O_KEY2_5 0x0000000C // AES Key 2_5 50 #define AES_O_KEY2_2 0x00000010 // AES Key 2_2 51 #define AES_O_KEY2_3 0x00000014 // AES Key 2_3 52 #define AES_O_KEY2_0 0x00000018 // AES Key 2_0 53 #define AES_O_KEY2_1 0x0000001C // AES Key 2_1 54 #define AES_O_KEY1_6 0x00000020 // AES Key 1_6 55 #define AES_O_KEY1_7 0x00000024 // AES Key 1_7 56 #define AES_O_KEY1_4 0x00000028 // AES Key 1_4 57 #define AES_O_KEY1_5 0x0000002C // AES Key 1_5 58 #define AES_O_KEY1_2 0x00000030 // AES Key 1_2 59 #define AES_O_KEY1_3 0x00000034 // AES Key 1_3 60 #define AES_O_KEY1_0 0x00000038 // AES Key 1_0 61 #define AES_O_KEY1_1 0x0000003C // AES Key 1_1 62 #define AES_O_IV_IN_0 0x00000040 // AES Initialization Vector Input 64 #define AES_O_IV_IN_1 0x00000044 // AES Initialization Vector Input 66 #define AES_O_IV_IN_2 0x00000048 // AES Initialization Vector Input 68 #define AES_O_IV_IN_3 0x0000004C // AES Initialization Vector Input 70 #define AES_O_CTRL 0x00000050 // AES Control 71 #define AES_O_C_LENGTH_0 0x00000054 // AES Crypto Data Length 0 72 #define AES_O_C_LENGTH_1 0x00000058 // AES Crypto Data Length 1 73 #define AES_O_AUTH_LENGTH 0x0000005C // AES Authentication Data Length 74 #define AES_O_DATA_IN_0 0x00000060 // AES Data RW Plaintext/Ciphertext 76 #define AES_O_DATA_IN_1 0x00000064 // AES Data RW Plaintext/Ciphertext 78 #define AES_O_DATA_IN_2 0x00000068 // AES Data RW Plaintext/Ciphertext 80 #define AES_O_DATA_IN_3 0x0000006C // AES Data RW Plaintext/Ciphertext 82 #define AES_O_TAG_OUT_0 0x00000070 // AES Hash Tag Out 0 83 #define AES_O_TAG_OUT_1 0x00000074 // AES Hash Tag Out 1 84 #define AES_O_TAG_OUT_2 0x00000078 // AES Hash Tag Out 2 85 #define AES_O_TAG_OUT_3 0x0000007C // AES Hash Tag Out 3 86 #define AES_O_REVISION 0x00000080 // AES IP Revision Identifier 87 #define AES_O_SYSCONFIG 0x00000084 // AES System Configuration 88 #define AES_O_SYSSTATUS 0x00000088 // AES System Status 89 #define AES_O_IRQSTATUS 0x0000008C // AES Interrupt Status 90 #define AES_O_IRQENABLE 0x00000090 // AES Interrupt Enable 91 #define AES_O_DIRTYBITS 0x00000094 // AES Dirty Bits 92 #define AES_O_DMAIM 0xFFFFA020 // AES DMA Interrupt Mask 93 #define AES_O_DMARIS 0xFFFFA024 // AES DMA Raw Interrupt Status 94 #define AES_O_DMAMIS 0xFFFFA028 // AES DMA Masked Interrupt Status 95 #define AES_O_DMAIC 0xFFFFA02C // AES DMA Interrupt Clear 102 #define AES_KEY2_6_KEY_M 0xFFFFFFFF // Key Data 103 #define AES_KEY2_6_KEY_S 0 110 #define AES_KEY2_7_KEY_M 0xFFFFFFFF // Key Data 111 #define AES_KEY2_7_KEY_S 0 118 #define AES_KEY2_4_KEY_M 0xFFFFFFFF // Key Data 119 #define AES_KEY2_4_KEY_S 0 126 #define AES_KEY2_5_KEY_M 0xFFFFFFFF // Key Data 127 #define AES_KEY2_5_KEY_S 0 134 #define AES_KEY2_2_KEY_M 0xFFFFFFFF // Key Data 135 #define AES_KEY2_2_KEY_S 0 142 #define AES_KEY2_3_KEY_M 0xFFFFFFFF // Key Data 143 #define AES_KEY2_3_KEY_S 0 150 #define AES_KEY2_0_KEY_M 0xFFFFFFFF // Key Data 151 #define AES_KEY2_0_KEY_S 0 158 #define AES_KEY2_1_KEY_M 0xFFFFFFFF // Key Data 159 #define AES_KEY2_1_KEY_S 0 166 #define AES_KEY1_6_KEY_M 0xFFFFFFFF // Key Data 167 #define AES_KEY1_6_KEY_S 0 174 #define AES_KEY1_7_KEY_M 0xFFFFFFFF // Key Data 175 #define AES_KEY1_7_KEY_S 0 182 #define AES_KEY1_4_KEY_M 0xFFFFFFFF // Key Data 183 #define AES_KEY1_4_KEY_S 0 190 #define AES_KEY1_5_KEY_M 0xFFFFFFFF // Key Data 191 #define AES_KEY1_5_KEY_S 0 198 #define AES_KEY1_2_KEY_M 0xFFFFFFFF // Key Data 199 #define AES_KEY1_2_KEY_S 0 206 #define AES_KEY1_3_KEY_M 0xFFFFFFFF // Key Data 207 #define AES_KEY1_3_KEY_S 0 214 #define AES_KEY1_0_KEY_M 0xFFFFFFFF // Key Data 215 #define AES_KEY1_0_KEY_S 0 222 #define AES_KEY1_1_KEY_M 0xFFFFFFFF // Key Data 223 #define AES_KEY1_1_KEY_S 0 230 #define AES_IV_IN_0_DATA_M 0xFFFFFFFF // Initialization Vector Input 231 #define AES_IV_IN_0_DATA_S 0 238 #define AES_IV_IN_1_DATA_M 0xFFFFFFFF // Initialization Vector Input 239 #define AES_IV_IN_1_DATA_S 0 246 #define AES_IV_IN_2_DATA_M 0xFFFFFFFF // Initialization Vector Input 247 #define AES_IV_IN_2_DATA_S 0 254 #define AES_IV_IN_3_DATA_M 0xFFFFFFFF // Initialization Vector Input 255 #define AES_IV_IN_3_DATA_S 0 262 #define AES_CTRL_CTXTRDY 0x80000000 // Context Data Registers Ready 263 #define AES_CTRL_SVCTXTRDY 0x40000000 // AES TAG/IV Block(s) Ready 264 #define AES_CTRL_SAVE_CONTEXT 0x20000000 // TAG or Result IV Save 265 #define AES_CTRL_CCM_M_M 0x01C00000 // Counter with CBC-MAC (CCM) 266 #define AES_CTRL_CCM_L_M 0x00380000 // L Value 267 #define AES_CTRL_CCM_L_2 0x00080000 // width = 2 268 #define AES_CTRL_CCM_L_4 0x00180000 // width = 4 269 #define AES_CTRL_CCM_L_8 0x00380000 // width = 8 270 #define AES_CTRL_CCM 0x00040000 // AES-CCM Mode Enable 271 #define AES_CTRL_GCM_M 0x00030000 // AES-GCM Mode Enable 272 #define AES_CTRL_GCM_NOP 0x00000000 // No operation 273 #define AES_CTRL_GCM_HLY0ZERO 0x00010000 // GHASH with H loaded and 275 #define AES_CTRL_GCM_HLY0CALC 0x00020000 // GHASH with H loaded and 278 #define AES_CTRL_GCM_HY0CALC 0x00030000 // Autonomous GHASH (both H and 281 #define AES_CTRL_CBCMAC 0x00008000 // AES-CBC MAC Enable 282 #define AES_CTRL_F9 0x00004000 // AES f9 Mode Enable 283 #define AES_CTRL_F8 0x00002000 // AES f8 Mode Enable 284 #define AES_CTRL_XTS_M 0x00001800 // AES-XTS Operation Enabled 285 #define AES_CTRL_XTS_NOP 0x00000000 // No operation 286 #define AES_CTRL_XTS_TWEAKJL 0x00000800 // Previous/intermediate tweak 290 #define AES_CTRL_XTS_K2IJL 0x00001000 // Key2, n and j are loaded (n is 293 #define AES_CTRL_XTS_K2ILJ0 0x00001800 // Key2 and n are loaded; j=0 (n is 295 #define AES_CTRL_CFB 0x00000400 // Full block AES cipher feedback 297 #define AES_CTRL_ICM 0x00000200 // AES Integer Counter Mode (ICM) 299 #define AES_CTRL_CTR_WIDTH_M 0x00000180 // AES-CTR Mode Counter Width 300 #define AES_CTRL_CTR_WIDTH_32 0x00000000 // Counter is 32 bits 301 #define AES_CTRL_CTR_WIDTH_64 0x00000080 // Counter is 64 bits 302 #define AES_CTRL_CTR_WIDTH_96 0x00000100 // Counter is 96 bits 303 #define AES_CTRL_CTR_WIDTH_128 0x00000180 // Counter is 128 bits 304 #define AES_CTRL_CTR 0x00000040 // Counter Mode 305 #define AES_CTRL_MODE 0x00000020 // ECB/CBC Mode 306 #define AES_CTRL_KEY_SIZE_M 0x00000018 // Key Size 307 #define AES_CTRL_KEY_SIZE_128 0x00000008 // Key is 128 bits 308 #define AES_CTRL_KEY_SIZE_192 0x00000010 // Key is 192 bits 309 #define AES_CTRL_KEY_SIZE_256 0x00000018 // Key is 256 bits 310 #define AES_CTRL_DIRECTION 0x00000004 // Encryption/Decryption Selection 311 #define AES_CTRL_INPUT_READY 0x00000002 // Input Ready Status 312 #define AES_CTRL_OUTPUT_READY 0x00000001 // Output Ready Status 313 #define AES_CTRL_CCM_M_S 22 321 #define AES_C_LENGTH_0_LENGTH_M 0xFFFFFFFF // Data Length 322 #define AES_C_LENGTH_0_LENGTH_S 0 330 #define AES_C_LENGTH_1_LENGTH_M 0xFFFFFFFF // Data Length 331 #define AES_C_LENGTH_1_LENGTH_S 0 339 #define AES_AUTH_LENGTH_AUTH_M 0xFFFFFFFF // Authentication Data Length 340 #define AES_AUTH_LENGTH_AUTH_S 0 348 #define AES_DATA_IN_0_DATA_M 0xFFFFFFFF // Secure Data RW 350 #define AES_DATA_IN_0_DATA_S 0 358 #define AES_DATA_IN_1_DATA_M 0xFFFFFFFF // Secure Data RW 360 #define AES_DATA_IN_1_DATA_S 0 368 #define AES_DATA_IN_2_DATA_M 0xFFFFFFFF // Secure Data RW 370 #define AES_DATA_IN_2_DATA_S 0 378 #define AES_DATA_IN_3_DATA_M 0xFFFFFFFF // Secure Data RW 380 #define AES_DATA_IN_3_DATA_S 0 388 #define AES_TAG_OUT_0_HASH_M 0xFFFFFFFF // Hash Result 389 #define AES_TAG_OUT_0_HASH_S 0 397 #define AES_TAG_OUT_1_HASH_M 0xFFFFFFFF // Hash Result 398 #define AES_TAG_OUT_1_HASH_S 0 406 #define AES_TAG_OUT_2_HASH_M 0xFFFFFFFF // Hash Result 407 #define AES_TAG_OUT_2_HASH_S 0 415 #define AES_TAG_OUT_3_HASH_M 0xFFFFFFFF // Hash Result 416 #define AES_TAG_OUT_3_HASH_S 0 423 #define AES_REVISION_M 0xFFFFFFFF // Revision number 424 #define AES_REVISION_S 0 432 #define AES_SYSCONFIG_K3 0x00001000 // K3 Select 433 #define AES_SYSCONFIG_KEYENC 0x00000800 // Key Encoding 434 #define AES_SYSCONFIG_MAP_CONTEXT_OUT_ON_DATA_OUT \ 435 0x00000200 // Map Context Out on Data Out 437 #define AES_SYSCONFIG_DMA_REQ_CONTEXT_OUT_EN \ 438 0x00000100 // DMA Request Context Out Enable 439 #define AES_SYSCONFIG_DMA_REQ_CONTEXT_IN_EN \ 440 0x00000080 // DMA Request Context In Enable 441 #define AES_SYSCONFIG_DMA_REQ_DATA_OUT_EN \ 442 0x00000040 // DMA Request Data Out Enable 443 #define AES_SYSCONFIG_DMA_REQ_DATA_IN_EN \ 444 0x00000020 // DMA Request Data In Enable 445 #define AES_SYSCONFIG_SOFTRESET 0x00000002 // Soft reset 453 #define AES_SYSSTATUS_RESETDONE 0x00000001 // Reset Done 461 #define AES_IRQSTATUS_CONTEXT_OUT \ 462 0x00000008 // Context Output Interrupt Status 463 #define AES_IRQSTATUS_DATA_OUT 0x00000004 // Data Out Interrupt Status 464 #define AES_IRQSTATUS_DATA_IN 0x00000002 // Data In Interrupt Status 465 #define AES_IRQSTATUS_CONTEXT_IN \ 466 0x00000001 // Context In Interrupt Status 474 #define AES_IRQENABLE_CONTEXT_OUT \ 475 0x00000008 // Context Out Interrupt Enable 476 #define AES_IRQENABLE_DATA_OUT 0x00000004 // Data Out Interrupt Enable 477 #define AES_IRQENABLE_DATA_IN 0x00000002 // Data In Interrupt Enable 478 #define AES_IRQENABLE_CONTEXT_IN \ 479 0x00000001 // Context In Interrupt Enable 487 #define AES_DIRTYBITS_S_DIRTY 0x00000002 // AES Dirty Bit 488 #define AES_DIRTYBITS_S_ACCESS 0x00000001 // AES Access Bit 495 #define AES_DMAIM_DOUT 0x00000008 // Data Out DMA Done Interrupt Mask 496 #define AES_DMAIM_DIN 0x00000004 // Data In DMA Done Interrupt Mask 497 #define AES_DMAIM_COUT 0x00000002 // Context Out DMA Done Interrupt 499 #define AES_DMAIM_CIN 0x00000001 // Context In DMA Done Interrupt 507 #define AES_DMARIS_DOUT 0x00000008 // Data Out DMA Done Raw Interrupt 509 #define AES_DMARIS_DIN 0x00000004 // Data In DMA Done Raw Interrupt 511 #define AES_DMARIS_COUT 0x00000002 // Context Out DMA Done Raw 513 #define AES_DMARIS_CIN 0x00000001 // Context In DMA Done Raw 521 #define AES_DMAMIS_DOUT 0x00000008 // Data Out DMA Done Masked 523 #define AES_DMAMIS_DIN 0x00000004 // Data In DMA Done Masked 525 #define AES_DMAMIS_COUT 0x00000002 // Context Out DMA Done Masked 527 #define AES_DMAMIS_CIN 0x00000001 // Context In DMA Done Raw 535 #define AES_DMAIC_DOUT 0x00000008 // Data Out DMA Done Interrupt 537 #define AES_DMAIC_DIN 0x00000004 // Data In DMA Done Interrupt Clear 538 #define AES_DMAIC_COUT 0x00000002 // Context Out DMA Done Masked 540 #define AES_DMAIC_CIN 0x00000001 // Context In DMA Done Raw 543 #endif // __HW_AES_H__
Copyright 2017, Texas Instruments Incorporated