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]

Definition at line 904 of file gr55xx_ll_aes.h.

## ◆ 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]

Definition at line 949 of file gr55xx_ll_aes.h.

## ◆ 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]

Definition at line 934 of file gr55xx_ll_aes.h.

## ◆ 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]

Definition at line 919 of file gr55xx_ll_aes.h.

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

Definition at line 889 of file gr55xx_ll_aes.h.

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

Definition at line 1170 of file gr55xx_ll_aes.h.

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

Definition at line 1108 of file gr55xx_ll_aes.h.

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

Definition at line 1201 of file gr55xx_ll_aes.h.

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

Definition at line 1139 of file gr55xx_ll_aes.h.

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

Definition at line 1281 of file gr55xx_ll_aes.h.

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

Definition at line 1329 of file gr55xx_ll_aes.h.

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

Definition at line 1313 of file gr55xx_ll_aes.h.

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

Definition at line 1297 of file gr55xx_ll_aes.h.

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

Definition at line 1029 of file gr55xx_ll_aes.h.

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

Definition at line 1013 of file gr55xx_ll_aes.h.

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

Definition at line 997 of file gr55xx_ll_aes.h.

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

Definition at line 981 of file gr55xx_ll_aes.h.

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

Definition at line 965 of file gr55xx_ll_aes.h.

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

Definition at line 1077 of file gr55xx_ll_aes.h.

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

Definition at line 1061 of file gr55xx_ll_aes.h.

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

Definition at line 1045 of file gr55xx_ll_aes.h.

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

Definition at line 874 of file gr55xx_ll_aes.h.

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

Definition at line 1345 of file gr55xx_ll_aes.h.

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

Definition at line 1155 of file gr55xx_ll_aes.h.

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

Definition at line 1093 of file gr55xx_ll_aes.h.

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

Definition at line 1186 of file gr55xx_ll_aes.h.

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

Definition at line 1124 of file gr55xx_ll_aes.h.

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

Definition at line 1217 of file gr55xx_ll_aes.h.

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

Definition at line 1265 of file gr55xx_ll_aes.h.

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

Definition at line 1249 of file gr55xx_ll_aes.h.

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

Definition at line 1233 of file gr55xx_ll_aes.h.