mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-01 18:50:34 +03:00
fix(esp_tee): Fix AEAD output buffer slicing in the tee_basic example
This commit is contained in:
@@ -45,7 +45,7 @@ void app_main(void)
|
||||
uint8_t aad_buf[AES256_GCM_AAD_LEN];
|
||||
|
||||
/* Generate random plaintext and AAD */
|
||||
esp_fill_random(plain_text, sizeof(EXAMPLE_BUF_SZ));
|
||||
esp_fill_random(plain_text, sizeof(plain_text));
|
||||
esp_fill_random(aad_buf, AES256_GCM_AAD_LEN);
|
||||
|
||||
/* Encryption operation */
|
||||
|
||||
Reference in New Issue
Block a user