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)

Definition at line 346 of file gr55xx_hal_aes.h.

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

Definition at line 331 of file gr55xx_hal_aes.h.

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

Definition at line 339 of file gr55xx_hal_aes.h.

AES_CHAININGMODE_ECB
#define AES_CHAININGMODE_ECB
ECB chaining mode.
Definition: gr55xx_hal_aes.h:228
AES_OPERATION_MODE_ENCRYPT
#define AES_OPERATION_MODE_ENCRYPT
Encrypt operation mode.
Definition: gr55xx_hal_aes.h:221
AES_KEYSIZE_256BITS
#define AES_KEYSIZE_256BITS
256 bits
Definition: gr55xx_hal_aes.h:206
AES_OPERATION_MODE_DECRYPT
#define AES_OPERATION_MODE_DECRYPT
Decrypt operation mode.
Definition: gr55xx_hal_aes.h:222
AES_CHAININGMODE_CBC
#define AES_CHAININGMODE_CBC
CBC chaining mode.
Definition: gr55xx_hal_aes.h:229
AES_KEYSIZE_128BITS
#define AES_KEYSIZE_128BITS
128 bits
Definition: gr55xx_hal_aes.h:204
AES_KEYSIZE_192BITS
#define AES_KEYSIZE_192BITS
192 bits
Definition: gr55xx_hal_aes.h:205