mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
mbedtls/port: added stream_block parameter sanity check
This commit is contained in:
parent
9e24739228
commit
9a47f8a066
@ -995,6 +995,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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user