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/os/core/
DappSec.c37 #define APP_VERIFY_BLOCK_SIZE ((SHA2_HASH_SIZE + AES_BLOCK_SIZE - 1) / AES_BLOCK_SIZE) * AES_…
292 if (state->signedBytesOut != (state->encryptedBytesIn + SHA2_HASH_SIZE)) { in appSecProcessIncomingHdr()
365 memcpy(state->lastHash, BL.blSha2finish(&state->sha), SHA2_HASH_SIZE); in appSecProcessIncomingData()
400 if (memcmp(state->lastHash, result, SHA2_HASH_SIZE)) in appSecDoSomeProcessing()
406 memcpy(state->lastHash, BL.blSha2finish(&state->sha), SHA2_HASH_SIZE); in appSecDoSomeProcessing()
Dbl.c405 if (memcmp(expectedHash, ourHash, SHA2_HASH_SIZE) != 0) { in blVerifyOsImage()
/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()