Home
last modified time | relevance | path

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

/device/google/contexthub/lib/include/nanohub/
Dsha2.h27 #define SHA2_HASH_SIZE 32U //in bytes macro
/device/google/contexthub/firmware/src/
DappSec.c38 #define APP_VERIFY_BLOCK_SIZE ((SHA2_HASH_SIZE + AES_BLOCK_SIZE - 1) / AES_BLOCK_SIZE) * AES_…
293 if (state->signedBytesOut != (state->encryptedBytesIn + SHA2_HASH_SIZE)) { in appSecProcessIncomingHdr()
354 memcpy(state->lastHash, BL.blSha2finish(&state->sha), SHA2_HASH_SIZE); in appSecProcessIncomingData()
389 if (memcmp(state->lastHash, result, SHA2_HASH_SIZE)) in appSecDoSomeProcessing()
395 memcpy(state->lastHash, BL.blSha2finish(&state->sha), SHA2_HASH_SIZE); in appSecDoSomeProcessing()
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c177 if (memcmp(rsaResult, refHash, SHA2_HASH_SIZE)) { in validateSignature()
184 memcpy(refHash, rsaResult, SHA2_HASH_SIZE); in validateSignature()
369 memcpy(rsa->num, hash, SHA2_HASH_SIZE); in handleSign()
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c224 bool verify = memcmp(fileHash, calcHash, SHA2_HASH_SIZE) == 0; in handleDecrypt()
/device/google/contexthub/firmware/src/platform/stm32f4xx/
Dbl.c810 if (memcmp(expectedHash, ourHash, SHA2_HASH_SIZE) != 0) { in blVerifyOsImage()