mbedtls/port: added stream_block parameter sanity check

This commit is contained in:
harshal.patil
2023-01-10 16:24:52 +05:30
parent c41bb46d92
commit 7e00b1f356

View File

@@ -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;