Macros | |
| #define | HAL_AES_busy() (hwp_aes_acc->STATUS & AES_ACC_STATUS_BUSY) |
Functions | |
| int | HAL_AES_init (uint32_t *key, int key_size, uint32_t *iv, uint32_t mode) |
| Initialize AES hardware block. More... | |
| HAL_StatusTypeDef | HAL_AES_run (uint8_t enc, uint8_t *in_data, uint8_t *out_data, int size) |
| run AES hardware enc/dec More... | |
| HAL_StatusTypeDef | HAL_AES_run_IT (uint8_t enc, uint8_t *in_data, uint8_t *out_data, int size) |
| run AES hardware enc/dec, generate interrupt when done. More... | |
| int | HAL_AES_reset (void) |
| Reset AES hardware block. More... | |
| void | HAL_AES_IRQHandler (void) |
| AES IRQ handler. | |
AES_exported_constants
| #define HAL_AES_busy | ( | ) | (hwp_aes_acc->STATUS & AES_ACC_STATUS_BUSY) |
Test whether AES hardware block is busy.
| int HAL_AES_init | ( | uint32_t * | key, |
| int | key_size, | ||
| uint32_t * | iv, | ||
| uint32_t | mode | ||
| ) |
Initialize AES hardware block.
| key | aes key, must be 32bit aligned |
| key_size | aes key size in bytes |
| iv | initial vector, must be 32bit aligned |
| mode | aes mode |
| 0 | if successful, otherwise -1 |
| int HAL_AES_reset | ( | void | ) |
Reset AES hardware block.
| 0 | if successful, otherwise -1 |
| HAL_StatusTypeDef HAL_AES_run | ( | uint8_t | enc, |
| uint8_t * | in_data, | ||
| uint8_t * | out_data, | ||
| int | size | ||
| ) |
run AES hardware enc/dec
| enc | 1:encoding, 0:decoding |
| in_data | input data, input data could not in ITCM or Retention memory |
| out_data | output data, output data could not in ITCM or Retention memory |
| size | length of input/output data in bytes, must be multiple of 16 bytes. |
| HAL_OK | if successful, otherwise HAL_ERROR |
| HAL_StatusTypeDef HAL_AES_run_IT | ( | uint8_t | enc, |
| uint8_t * | in_data, | ||
| uint8_t * | out_data, | ||
| int | size | ||
| ) |
run AES hardware enc/dec, generate interrupt when done.
| enc | 1:encoding, 0:decoding |
| in_data | input data, input data could not in ITCM or Retention memory |
| out_data | output data, output data could not in ITCM or Retention memory |
| size | length of input/output data in bytes, must be multiple of 16 bytes. |
| HAL_OK | if successful, otherwise HAL_ERROR |