Searched refs:SHA2_HASH_SIZE (Results 1 – 5 of 5) sorted by relevance
/device/google/contexthub/lib/include/nanohub/ |
D | sha2.h | 27 #define SHA2_HASH_SIZE 32U //in bytes macro
|
/device/google/contexthub/firmware/os/core/ |
D | appSec.c | 37 #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()
|
D | bl.c | 405 if (memcmp(expectedHash, ourHash, SHA2_HASH_SIZE) != 0) { in blVerifyOsImage()
|
/device/google/contexthub/util/nanoapp_sign/ |
D | nanoapp_sign.c | 177 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/ |
D | nanoapp_encr.c | 224 bool verify = memcmp(fileHash, calcHash, SHA2_HASH_SIZE) == 0; in handleDecrypt()
|