mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 20:21:04 +00:00
aes/sha: use a shared lazy allocated GDMA channel for AES and SHA
Removed the old dynamically allocated GDMA channel approach. It proved too unreliable as we couldn't not ensure consumers of the mbedtls would properly free the channels after use. Replaced by a single shared GDMA channel for AES and SHA, which won't be released unless user specifically calls API for releasing it.
This commit is contained in:
@@ -27,24 +27,16 @@ extern "C" {
|
||||
*/
|
||||
|
||||
/**
|
||||
* Acquire lock for the SHA cryptography peripheral
|
||||
* @brief Acquire lock for the SHA and AES cryptography peripheral.
|
||||
*
|
||||
*/
|
||||
void esp_crypto_sha_lock_acquire(void);
|
||||
void esp_crypto_sha_aes_lock_acquire(void);
|
||||
|
||||
/**
|
||||
* Release lock for the SHA cryptography peripheral
|
||||
* @brief Release lock for the SHA and AES cryptography peripheral.
|
||||
*
|
||||
*/
|
||||
void esp_crypto_sha_lock_release(void);
|
||||
|
||||
/**
|
||||
* Acquire lock for the AES cryptography peripheral
|
||||
*/
|
||||
void esp_crypto_aes_lock_acquire(void);
|
||||
|
||||
/**
|
||||
* Release lock for the AES cryptography peripheral
|
||||
*/
|
||||
void esp_crypto_aes_lock_release(void);
|
||||
void esp_crypto_sha_aes_lock_release(void);
|
||||
|
||||
/**
|
||||
* Acquire lock for the MPI/RSA cryptography peripheral
|
||||
|
Reference in New Issue
Block a user