Macros
AES Private Macros
Peripheral Driver » HAL Driver » AES » Defines

## Macros
#define | IS_AES_KEY_SIZE(__SIZE__)
| Check if AES Key Size is valid. More...
#define | IS_AES_OPERATION_MODE(__MODE__)
| Check if AES Operation Mode is valid. More...
#define | IS_AES_CHAININGMODE(__MODE__)
| Check if AES Chaining Mode is valid. More...

## Detailed Description

## Macro Definition Documentation

## ◆ IS_AES_CHAININGMODE

#define IS_AES_CHAININGMODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == AES_CHAININGMODE_ECB) || \
((__MODE__) == AES_CHAININGMODE_CBC))

Check if AES Chaining Mode is valid.

Parameters

  <strong>MODE</strong> | AES Chaining Mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

## ◆ IS_AES_KEY_SIZE

#define IS_AES_KEY_SIZE | ( |  | __SIZE__ | ) |

Value:
(((__SIZE__) == AES_KEYSIZE_128BITS) || \
((__SIZE__) == AES_KEYSIZE_192BITS) || \
((__SIZE__) == AES_KEYSIZE_256BITS))

Check if AES Key Size is valid.

Parameters

  <strong>SIZE</strong> | AES Key Size.

Return values

  SET | (SIZE is valid) or RESET (SIZE is invalid)

## ◆ IS_AES_OPERATION_MODE

#define IS_AES_OPERATION_MODE | ( |  | __MODE__ | ) |

Value:
(((__MODE__) == AES_OPERATION_MODE_ENCRYPT) || \
((__MODE__) == AES_OPERATION_MODE_DECRYPT))

Check if AES Operation Mode is valid.

Parameters

  <strong>MODE</strong> | AES Operation Mode.

Return values

  SET | (MODE is valid) or RESET (MODE is invalid)

AES_CHAININGMODE_ECB
#define AES_CHAININGMODE_ECB
Definition: gr55xx_hal_aes.h:228
AES_OPERATION_MODE_ENCRYPT
#define AES_OPERATION_MODE_ENCRYPT
Definition: gr55xx_hal_aes.h:221
AES_KEYSIZE_256BITS
#define AES_KEYSIZE_256BITS
Definition: gr55xx_hal_aes.h:206
AES_OPERATION_MODE_DECRYPT
#define AES_OPERATION_MODE_DECRYPT
Definition: gr55xx_hal_aes.h:222
AES_CHAININGMODE_CBC
#define AES_CHAININGMODE_CBC
Definition: gr55xx_hal_aes.h:229
AES_KEYSIZE_128BITS
#define AES_KEYSIZE_128BITS
Definition: gr55xx_hal_aes.h:204
AES_KEYSIZE_192BITS
#define AES_KEYSIZE_192BITS
Definition: gr55xx_hal_aes.h:205