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/src/ |
D | appSec.c | 38 #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/ |
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()
|
/device/google/contexthub/firmware/src/platform/stm32f4xx/ |
D | bl.c | 810 if (memcmp(expectedHash, ourHash, SHA2_HASH_SIZE) != 0) { in blVerifyOsImage()
|