mirror of
https://github.com/arendst/Tasmota.git
synced 2026-02-20 00:32:32 +01:00
BearSSL: Fix SHA1 mode setting for ESP32P4 on IDF 5.5+ (#24420)
Add conditional compilation for ESP32P4 in IDF 5.5
This commit is contained in:
@@ -69,6 +69,9 @@ sha_hal_process_block(void *state_buf, const void *blk,
|
||||
size_t block_words, bool first)
|
||||
{
|
||||
SHA_ENTER();
|
||||
#if defined(CONFIG_IDF_TARGET_ESP32P4) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 5, 0)
|
||||
sha_ll_set_mode(type); // required on P4 in IDF 5.5+
|
||||
#endif
|
||||
if (!first) {
|
||||
sha_ll_write_digest(type, state_buf, digest_words);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user