Functions | |
| __STATIC_INLINE void | ll_aes_set_key_address (aes_regs_t *AESx, uint32_t address) |
| Set AES key address in memory. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_key_address (aes_regs_t *AESx) |
| Get AES key address in memory. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_data_127_96 (aes_regs_t *AESx) |
| Get AES output data[127:96]. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_data_95_64 (aes_regs_t *AESx) |
| Get AES output data[95:64]. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_data_63_32 (aes_regs_t *AESx) |
| Get AES output data[63:32]. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_data_31_0 (aes_regs_t *AESx) |
| Get AES output data[31:0]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_255_224 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[255:224]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_223_192 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[223:192]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_191_160 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[191:160]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_159_128 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[159:128]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_127_96 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[127:96]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_95_64 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[95:64]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_63_32 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[63:32]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_31_0 (aes_regs_t *AESx, uint32_t key) |
| Set AES key[31:0]. More... | |
| __STATIC_INLINE void | ll_aes_set_seed_in (aes_regs_t *AESx, uint32_t seed) |
| Set AES input seed. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_seed_in (aes_regs_t *AESx) |
| Get AES input seed. More... | |
| __STATIC_INLINE void | ll_aes_set_seed_out (aes_regs_t *AESx, uint32_t seed) |
| Set AES output seed. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_seed_out (aes_regs_t *AESx) |
| Get AES output seed. More... | |
| __STATIC_INLINE void | ll_aes_set_seed_Imask (aes_regs_t *AESx, uint32_t mask) |
| Set sbox input data's mask. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_seed_Imask (aes_regs_t *AESx) |
| Get sbox input data's mask. More... | |
| __STATIC_INLINE void | ll_aes_set_seed_Osbox (aes_regs_t *AESx, uint32_t mask) |
| Set sbox output data's mask. More... | |
| __STATIC_INLINE uint32_t | ll_aes_get_seed_Osbox (aes_regs_t *AESx) |
| Get sbox output data's mask. More... | |
| __STATIC_INLINE void | ll_aes_set_vector_127_96 (aes_regs_t *AESx, uint32_t vector) |
| Set AES initialization vector[127:96]. More... | |
| __STATIC_INLINE void | ll_aes_set_vector_95_64 (aes_regs_t *AESx, uint32_t vector) |
| Set AES initialization vector[95:64]. More... | |
| __STATIC_INLINE void | ll_aes_set_vector_63_32 (aes_regs_t *AESx, uint32_t vector) |
| Set AES initialization vector[63:32]. More... | |
| __STATIC_INLINE void | ll_aes_set_vector_31_0 (aes_regs_t *AESx, uint32_t vector) |
| Set AES initialization vector[31:0]. More... | |
| __STATIC_INLINE void | ll_aes_set_data_127_96 (aes_regs_t *AESx, uint32_t data) |
| Set AES input data[127:96]. More... | |
| __STATIC_INLINE void | ll_aes_set_data_95_64 (aes_regs_t *AESx, uint32_t data) |
| Set AES input data[95:64]. More... | |
| __STATIC_INLINE void | ll_aes_set_data_63_32 (aes_regs_t *AESx, uint32_t data) |
| Set AES input data[63:32]. More... | |
| __STATIC_INLINE void | ll_aes_set_data_31_0 (aes_regs_t *AESx, uint32_t data) |
| Set AES input data[31:0]. More... | |
| __STATIC_INLINE void | ll_aes_set_key_port_mask (aes_regs_t *AESx, uint32_t mask) |
| Set AES fetch key port mask. More... | |
| __STATIC_INLINE uint32_t ll_aes_get_data_127_96 | ( | aes_regs_t * | AESx | ) |
Get AES output data[127:96].
| Register | BitsName |
|---|---|
| DATA_OUT[0] | DATA_OUT |
| AESx | AES instance |
| Output | Data[127:96] |
| __STATIC_INLINE uint32_t ll_aes_get_data_31_0 | ( | aes_regs_t * | AESx | ) |
Get AES output data[31:0].
| Register | BitsName |
|---|---|
| DATA_OUT[3] | DATA_OUT |
| AESx | AES instance |
| Output | Data[31:0] |
| __STATIC_INLINE uint32_t ll_aes_get_data_63_32 | ( | aes_regs_t * | AESx | ) |
Get AES output data[63:32].
| Register | BitsName |
|---|---|
| DATA_OUT[2] | DATA_OUT |
| AESx | AES instance |
| Output | Data[63:32] |
| __STATIC_INLINE uint32_t ll_aes_get_data_95_64 | ( | aes_regs_t * | AESx | ) |
Get AES output data[95:64].
| Register | BitsName |
|---|---|
| DATA_OUT[1] | DATA_OUT |
| AESx | AES instance |
| Output | Data[95:64] |
| __STATIC_INLINE uint32_t ll_aes_get_key_address | ( | aes_regs_t * | AESx | ) |
Get AES key address in memory.
| Register | BitsName |
|---|---|
| KEY_ADDR | KEY_ADDR |
| AESx | AES instance |
| Returned | value is the key address in RAM. |
| __STATIC_INLINE uint32_t ll_aes_get_seed_Imask | ( | aes_regs_t * | AESx | ) |
Get sbox input data's mask.
| Register | BitsName |
|---|---|
| SEED_IMASK | SEED_IMASK |
| AESx | AES instance |
| Returned | value is the input data's mask. |
| __STATIC_INLINE uint32_t ll_aes_get_seed_in | ( | aes_regs_t * | AESx | ) |
Get AES input seed.
| Register | BitsName |
|---|---|
| SEED_IN | SEED_IN |
| AESx | AES instance |
| Returned | value is the input seed. |
| __STATIC_INLINE uint32_t ll_aes_get_seed_Osbox | ( | aes_regs_t * | AESx | ) |
Get sbox output data's mask.
| Register | BitsName |
|---|---|
| SEED_OSBOX | SEED_OSBOX |
| AESx | AES instance |
| Returned | value is the output data's mask. |
| __STATIC_INLINE uint32_t ll_aes_get_seed_out | ( | aes_regs_t * | AESx | ) |
Get AES output seed.
| Register | BitsName |
|---|---|
| SEED_OUT | SEED_OUT |
| AESx | AES instance |
| Returned | value is the output seed. |
| __STATIC_INLINE void ll_aes_set_data_127_96 | ( | aes_regs_t * | AESx, |
| uint32_t | data | ||
| ) |
Set AES input data[127:96].
| Register | BitsName |
|---|---|
| DATA_IN[0] | DATA_IN |
| AESx | AES instance |
| data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_data_31_0 | ( | aes_regs_t * | AESx, |
| uint32_t | data | ||
| ) |
Set AES input data[31:0].
| Register | BitsName |
|---|---|
| DATA_IN[3] | DATA_IN |
| AESx | AES instance |
| data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_data_63_32 | ( | aes_regs_t * | AESx, |
| uint32_t | data | ||
| ) |
Set AES input data[63:32].
| Register | BitsName |
|---|---|
| DATA_IN[2] | DATA_IN |
| AESx | AES instance |
| data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_data_95_64 | ( | aes_regs_t * | AESx, |
| uint32_t | data | ||
| ) |
Set AES input data[95:64].
| Register | BitsName |
|---|---|
| DATA_IN[1] | DATA_IN |
| AESx | AES instance |
| data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_127_96 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[127:96].
| Register | BitsName |
|---|---|
| KEY[4] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_159_128 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[159:128].
| Register | BitsName |
|---|---|
| KEY[3] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_191_160 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[191:160].
| Register | BitsName |
|---|---|
| KEY[2] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_223_192 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[223:192].
| Register | BitsName |
|---|---|
| KEY[1] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_255_224 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[255:224].
| Register | BitsName |
|---|---|
| KEY[0] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_31_0 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[31:0].
| Register | BitsName |
|---|---|
| KEY[7] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_63_32 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[63:32].
| Register | BitsName |
|---|---|
| KEY[6] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_95_64 | ( | aes_regs_t * | AESx, |
| uint32_t | key | ||
| ) |
Set AES key[95:64].
| Register | BitsName |
|---|---|
| KEY[5] | KEY |
| AESx | AES instance |
| key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_key_address | ( | aes_regs_t * | AESx, |
| uint32_t | address | ||
| ) |
Set AES key address in memory.
| Register | BitsName |
|---|---|
| KEY_ADDR | KEY_ADDR |
| AESx | AES instance |
| address | This parameter can be one of the address in RAM |
| None |
| __STATIC_INLINE void ll_aes_set_key_port_mask | ( | aes_regs_t * | AESx, |
| uint32_t | mask | ||
| ) |
Set AES fetch key port mask.
| Register | BitsName |
|---|---|
| KPORT_MASK | KPORT_MASK |
| AESx | AES instance |
| mask | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_seed_Imask | ( | aes_regs_t * | AESx, |
| uint32_t | mask | ||
| ) |
Set sbox input data's mask.
| Register | BitsName |
|---|---|
| SEED_IMASK | SEED_IMASK |
| AESx | AES instance |
| mask | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_seed_in | ( | aes_regs_t * | AESx, |
| uint32_t | seed | ||
| ) |
Set AES input seed.
| Register | BitsName |
|---|---|
| SEED_IN | SEED_IN |
| AESx | AES instance |
| seed | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_seed_Osbox | ( | aes_regs_t * | AESx, |
| uint32_t | mask | ||
| ) |
Set sbox output data's mask.
| Register | BitsName |
|---|---|
| SEED_OSBOX | SEED_OSBOX |
| AESx | AES instance |
| mask | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_seed_out | ( | aes_regs_t * | AESx, |
| uint32_t | seed | ||
| ) |
Set AES output seed.
| Register | BitsName |
|---|---|
| SEED_OUT | SEED_OUT |
| AESx | AES instance |
| seed | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_vector_127_96 | ( | aes_regs_t * | AESx, |
| uint32_t | vector | ||
| ) |
Set AES initialization vector[127:96].
| Register | BitsName |
|---|---|
| VECTOR_INIT[0] | VECTOR_INIT |
| AESx | AES instance |
| vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_vector_31_0 | ( | aes_regs_t * | AESx, |
| uint32_t | vector | ||
| ) |
Set AES initialization vector[31:0].
| Register | BitsName |
|---|---|
| VECTOR_INIT[3] | VECTOR_INIT |
| AESx | AES instance |
| vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_vector_63_32 | ( | aes_regs_t * | AESx, |
| uint32_t | vector | ||
| ) |
Set AES initialization vector[63:32].
| Register | BitsName |
|---|---|
| VECTOR_INIT[2] | VECTOR_INIT |
| AESx | AES instance |
| vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |
| __STATIC_INLINE void ll_aes_set_vector_95_64 | ( | aes_regs_t * | AESx, |
| uint32_t | vector | ||
| ) |
Set AES initialization vector[95:64].
| Register | BitsName |
|---|---|
| VECTOR_INIT[1] | VECTOR_INIT |
| AESx | AES instance |
| vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF |
| None |