Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c64 struct AppSecEncrHdr encr; in handleEncrypt() local
68 encr.keyID = keyId; in handleEncrypt()
78 fprintf(stderr, "Using Key ID: %016" PRIX64 "\n", encr.keyID); in handleEncrypt()
79 rand_bytes(encr.IV, sizeof(encr.IV)); in handleEncrypt()
80 printHash(stderr, "Using IV", encr.IV, AES_BLOCK_WORDS); in handleEncrypt()
87 encr.dataLen = bufUsed; in handleEncrypt()
122 fprintf(stderr, "orig len: %" PRIu32 " bytes\n", encr.dataLen); in handleEncrypt()
124 encr.dataLen -= sizeof(*image); in handleEncrypt()
125 fwrite(&encr, sizeof(encr), 1, out); in handleEncrypt()
129 aesCbcInitForEncr(&ctx, key, encr.IV); in handleEncrypt()
[all …]