[esp32_hosted] Add SHA256 alignment for hardware DMA compatibility (#13050)

This commit is contained in:
J. Nick Koston
2026-01-07 08:26:49 -10:00
committed by GitHub
parent ef64226ed0
commit a03c13f304

View File

@@ -90,7 +90,8 @@ void Esp32HostedUpdate::perform(bool force) {
return;
}
sha256::SHA256 hasher;
// ESP32-S3 hardware SHA acceleration requires 32-byte DMA alignment (IDF 5.5.x+)
alignas(32) sha256::SHA256 hasher;
hasher.init();
hasher.add(this->firmware_data_, this->firmware_size_);
hasher.calculate();