Functions
Data_Management
Peripheral Driver » LL Driver » AES » Functions

## 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...

## Detailed Description

## Function Documentation

## ◆ ll_aes_get_data_127_96()

__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

Parameters

  AESx | AES instance

Return values

  Output | Data[127:96]

## ◆ ll_aes_get_data_31_0()

__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

Parameters

  AESx | AES instance

Return values

  Output | Data[31:0]

## ◆ ll_aes_get_data_63_32()

__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

Parameters

  AESx | AES instance

Return values

  Output | Data[63:32]

## ◆ ll_aes_get_data_95_64()

__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

Parameters

  AESx | AES instance

Return values

  Output | Data[95:64]

## ◆ ll_aes_get_key_address()

__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

Parameters

  AESx | AES instance

Return values

  Returned | value is the key address in RAM.

## ◆ ll_aes_get_seed_Imask()

__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

Parameters

  AESx | AES instance

Return values

  Returned | value is the input data's mask.

## ◆ ll_aes_get_seed_in()

__STATIC_INLINE uint32_t ll_aes_get_seed_in | ( | aes_regs_t * | AESx | ) |

Get AES input seed.

Register | BitsName
--- | ---
SEED_IN | SEED_IN

Parameters

  AESx | AES instance

Return values

  Returned | value is the input seed.

## ◆ ll_aes_get_seed_Osbox()

__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

Parameters

  AESx | AES instance

Return values

  Returned | value is the output data's mask.

## ◆ ll_aes_get_seed_out()

__STATIC_INLINE uint32_t ll_aes_get_seed_out | ( | aes_regs_t * | AESx | ) |

Get AES output seed.

Register | BitsName
--- | ---
SEED_OUT | SEED_OUT

Parameters

  AESx | AES instance

Return values

  Returned | value is the output seed.

## ◆ ll_aes_set_data_127_96()

__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

Parameters

  AESx | AES instance
  data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_data_31_0()

__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

Parameters

  AESx | AES instance
  data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_data_63_32()

__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

Parameters

  AESx | AES instance
  data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_data_95_64()

__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

Parameters

  AESx | AES instance
  data | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_127_96()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_159_128()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_191_160()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_223_192()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_255_224()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_31_0()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_63_32()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_95_64()

__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

Parameters

  AESx | AES instance
  key | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_key_address()

__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

Parameters

  AESx | AES instance
  address | This parameter can be one of the address in RAM

Return values

  None |

## ◆ ll_aes_set_key_port_mask()

__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

Parameters

  AESx | AES instance
  mask | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_seed_Imask()

__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

Parameters

  AESx | AES instance
  mask | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_seed_in()

__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

Parameters

  AESx | AES instance
  seed | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_seed_Osbox()

__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

Parameters

  AESx | AES instance
  mask | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_seed_out()

__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

Parameters

  AESx | AES instance
  seed | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_vector_127_96()

__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

Parameters

  AESx | AES instance
  vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_vector_31_0()

__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

Parameters

  AESx | AES instance
  vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_vector_63_32()

__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

Parameters

  AESx | AES instance
  vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |

## ◆ ll_aes_set_vector_95_64()

__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

Parameters

  AESx | AES instance
  vector | This parameter can be one of the following values: 0 ~ 0xFFFFFFFF

Return values

  None |