aes: Fixed tag sometime being wrong for HW GCM

The GCM hardware accelerated algorithm for S2 would sometimes output
the wrong tag.

Added additional tests for AES and GCM

Re-enable HW GCM as default option
This commit is contained in:
Marius Vikhammer
2020-03-17 18:21:30 +08:00
parent 2e7ae75011
commit ffb9010cbe
5 changed files with 187 additions and 66 deletions

View File

@@ -36,6 +36,7 @@ extern "C" {
typedef enum {
ESP_AES_GCM_STATE_INIT,
ESP_AES_GCM_STATE_START,
ESP_AES_GCM_STATE_UPDATE,
ESP_AES_GCM_STATE_FINISH
} esp_aes_gcm_state;