mirror of
https://github.com/alexhopeoconnor/firmware.git
synced 2026-10-19 18:01:30 +10:00
fix(crypto): hash full size_t inputs (#11359)
This commit is contained in:
@@ -302,8 +302,8 @@ void CryptoEngine::hash(uint8_t *bytes, size_t numBytes)
|
||||
{
|
||||
SHA256 hash;
|
||||
size_t posn;
|
||||
uint8_t size = numBytes;
|
||||
uint8_t inc = 16;
|
||||
size_t size = numBytes;
|
||||
constexpr size_t inc = 16;
|
||||
hash.reset();
|
||||
for (posn = 0; posn < size; posn += inc) {
|
||||
size_t len = size - posn;
|
||||
|
||||
Reference in New Issue
Block a user