Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c161 …uint32_t fileHash[((SHA2_HASH_WORDS + AES_BLOCK_WORDS - 1) / AES_BLOCK_WORDS) * AES_BLOCK_WORDS], … in handleDecrypt() local
212 } else if (fileHashSz < sizeof(fileHash)) { in handleDecrypt()
213 memcpy(((uint8_t*)fileHash) + fileHashSz, outBuf, AES_BLOCK_SIZE); in handleDecrypt()
222 printHash(stderr, "HASH [file]", fileHash, SHA2_HASH_WORDS); in handleDecrypt()
224 bool verify = memcmp(fileHash, calcHash, SHA2_HASH_SIZE) == 0; in handleDecrypt()