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

  __MODE__ | 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

  __SIZE__ | 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

  __MODE__ | 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
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