esp_sha_try_lock_engine() function
Try and obtain exclusive access to a particular SHA engine
Arguments
sha_type
Type of SHA engine to use.
Return value
Returns true if the SHA engine is locked for exclusive use. Call esp_sha_unlock_sha_engine() when done. Returns false if the SHA engine is already in use, caller should use software SHA algorithm for this digest.
![]()
if (esp_sha_try_lock_engine(SHA1)) {
esp_sha_try_lock_engine() is called by 3 functions and calls 1 function:
![]()
esp_sha_try_lock_engine()
esp_sha_try_lock_engine():
![]()
esp_sha_try_lock_engine()