Home
last modified time | relevance | path

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

/device/google/dragon/audio/hal/
Ddictionary.c91 unsigned hash ; in dictionary_hash() local
95 for (hash=0, i=0 ; i<len ; i++) { in dictionary_hash()
96 hash += (unsigned)key[i] ; in dictionary_hash()
97 hash += (hash<<10); in dictionary_hash()
98 hash ^= (hash>>6) ; in dictionary_hash()
100 hash += (hash <<3); in dictionary_hash()
101 hash ^= (hash >>11); in dictionary_hash()
102 hash += (hash <<15); in dictionary_hash()
103 return hash ; in dictionary_hash()
130 d->hash = (unsigned int *)calloc(size, sizeof(unsigned)); in dictionary_new()
[all …]
Ddictionary.h46 unsigned * hash ; /** List of hash values for keys */ member
/device/google/contexthub/lib/nanohub/
Dnanoapp.c100 static void doPrintHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size, int incremen… in doPrintHash() argument
106 fprintf(out, "%08" PRIx32, hash[pos]); in doPrintHash()
110 void printHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size) in printHash() argument
112 doPrintHash(out, pfx, hash, size, 1); in printHash()
115 void printHashRev(FILE *out, const char *pfx, const uint32_t *hash, size_t size) in printHashRev() argument
117 doPrintHash(out, pfx, hash + size - 1, size, -1); in printHashRev()
/device/google/contexthub/lib/include/nanohub/
Dnanoapp.h27 void printHash(FILE *out, const char *pfx, const uint32_t *hash, size_t size);
28 void printHashRev(FILE *out, const char *pfx, const uint32_t *hash, size_t size);
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c287 uint32_t *hash; in handleVerify() local
292 hash = (uint32_t*)sha2finish(&shaState); in handleVerify()
293 printHash(stderr, "File hash", hash, SHA2_HASH_WORDS); in handleVerify()
296 if (!validateSignature(sigPack, rsa, verbose, hash, false)) { in handleVerify()
321 const uint32_t *hash; in handleSign() local
365 hash = sha2finish(&shaState); in handleSign()
367 printHash(stderr, "SHA2 hash", hash, SHA2_HASH_WORDS); in handleSign()
369 memcpy(rsa->num, hash, SHA2_HASH_SIZE); in handleSign()
/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c140 const uint32_t *hash = sha2finish(&shaState); in handleEncrypt() local
142 printHash(stderr, "HASH", hash, SHA2_HASH_WORDS); in handleEncrypt()
145 aesCbcEncr(&ctx, hash, outBuf); in handleEncrypt()
147 aesCbcEncr(&ctx, hash + AES_BLOCK_WORDS, outBuf); in handleEncrypt()
/device/google/contexthub/firmware/misc/cpu/cortexm4f/
Dapp.lkr123 .hash : {
124 *(.hash); *(.hash.*);
/device/google/contexthub/firmware/src/
DappSec.c425 const uint32_t *hash = BL.blSha2finish(&state->cbcSha); in appSecVerifyEncryptedData() local
426 bool verified = memcmp(hash, state->dataBytes, SHA2_BLOCK_SIZE) == 0; in appSecVerifyEncryptedData()
/device/lge/bullhead/wifi/
DWCNSS_qcom_cfg.ini660 # Enable to check FW hash if secure FW feature is enabled. It's for defconfig