Home
last modified time | relevance | path

Searched refs:pad_bytes (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-latest/components/bootloader_support/src/esp32/
Dbootloader_sha.c87 int pad_bytes = 55 - block_bytes; in bootloader_sha256_finish() local
88 if (pad_bytes < 0) { in bootloader_sha256_finish()
89 pad_bytes += 64; in bootloader_sha256_finish()
93 pad_bytes += 5; // 1 byte for 0x80 plus first 4 bytes of the 64-bit length in bootloader_sha256_finish()
94 assert(pad_bytes % 4 == 0); // should be, as (block_bytes % 4 == 0) in bootloader_sha256_finish()
96 bootloader_sha256_data(handle, padding, pad_bytes); in bootloader_sha256_finish()