Searched refs:AES_BLOCK_WORDS (Results 1 – 5 of 5) sorted by relevance
/device/google/contexthub/util/nanoapp_encr/ |
D | nanoapp_encr.c | 80 printHash(stderr, "Using IV", encr.IV, AES_BLOCK_WORDS); in handleEncrypt() 130 uint32_t outBuf[AES_BLOCK_WORDS]; in handleEncrypt() 131 for (i = 0; i < bufUsed/sizeof(uint32_t); i += AES_BLOCK_WORDS) { in handleEncrypt() 147 aesCbcEncr(&ctx, hash + AES_BLOCK_WORDS, outBuf); in handleEncrypt() 161 …uint32_t fileHash[((SHA2_HASH_WORDS + AES_BLOCK_WORDS - 1) / AES_BLOCK_WORDS) * AES_BLOCK_WORDS], … in handleDecrypt() 162 uint32_t outBuf[AES_BLOCK_WORDS]; in handleDecrypt() 197 printHash(stderr, "Using IV", encr->IV, AES_BLOCK_WORDS); in handleDecrypt() 204 for (i = 0; i < bufUsed / sizeof(uint32_t); i += AES_BLOCK_WORDS) { in handleDecrypt()
|
/device/google/contexthub/lib/nanohub/ |
D | aes.c | 347 memcpy(ctx->iv, iv, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcInitForEncr() 355 memcpy(ctx->iv, iv, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcInitForDecr() 362 for (i = 0; i < AES_BLOCK_WORDS; i++) in aesCbcEncr() 366 memcpy(ctx->iv, dst, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcEncr() 371 uint32_t i, tmp[AES_BLOCK_WORDS]; in aesCbcDecr() 374 for (i = 0; i < AES_BLOCK_WORDS; i++) in aesCbcDecr() 377 memcpy(ctx->iv, src, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcDecr() 378 memcpy(dst, tmp, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcDecr()
|
/device/google/contexthub/lib/include/nanohub/ |
D | aes.h | 31 #define AES_BLOCK_WORDS 4 macro 43 uint32_t iv[AES_BLOCK_WORDS];
|
D | nanohub.h | 152 uint32_t IV[AES_BLOCK_WORDS];
|
/device/google/contexthub/firmware/os/core/ |
D | appSec.c | 33 #define APP_DATA_CHUNK_SIZE (AES_BLOCK_WORDS * sizeof(uint32_t)) //data blocks are this si… 201 for (i = 0; i < numBlocks; i++, dataP += AES_BLOCK_WORDS) in appSecBlockRx()
|