diff --git a/components/mbedtls/port/aes/dma/esp_aes.c b/components/mbedtls/port/aes/dma/esp_aes.c index 893b0556db..b5e4befd38 100644 --- a/components/mbedtls/port/aes/dma/esp_aes.c +++ b/components/mbedtls/port/aes/dma/esp_aes.c @@ -991,6 +991,11 @@ int esp_aes_crypt_ctr(esp_aes_context *ctx, return -1; } + if (!stream_block) { + ESP_LOGE(TAG, "No stream supplied"); + return -1; + } + if (!nonce_counter) { ESP_LOGE(TAG, "No nonce supplied"); return -1;