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.