mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-31 19:24:33 +02:00
mbedtls/port: added stream_block parameter sanity check
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user