Searched refs:AES_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance
/device/google/contexthub/util/nanoapp_encr/ |
D | nanoapp_encr.c | 89 if (((bufUsed - sizeof(*image)) % AES_BLOCK_SIZE) != 0) in handleEncrypt() 90 padLen = AES_BLOCK_SIZE - ((bufUsed - sizeof(*image)) % AES_BLOCK_SIZE); in handleEncrypt() 134 sz = sz > AES_BLOCK_SIZE ? AES_BLOCK_SIZE : sz; in handleEncrypt() 137 fwrite(outBuf, AES_BLOCK_SIZE, 1, out); in handleEncrypt() 146 fwrite(outBuf, AES_BLOCK_SIZE, 1, out); in handleEncrypt() 148 err = fwrite(outBuf, AES_BLOCK_SIZE, 1, out) != 1; in handleEncrypt() 207 if (size > AES_BLOCK_SIZE) in handleDecrypt() 208 size = AES_BLOCK_SIZE; in handleDecrypt() 213 memcpy(((uint8_t*)fileHash) + fileHashSz, outBuf, AES_BLOCK_SIZE); in handleDecrypt() 214 fileHashSz += AES_BLOCK_SIZE; in handleDecrypt()
|
/device/google/contexthub/lib/include/nanohub/ |
D | aes.h | 32 #define AES_BLOCK_SIZE 16 // in bytes macro
|
/device/google/contexthub/firmware/src/ |
D | appSec.c | 38 …e APP_VERIFY_BLOCK_SIZE ((SHA2_HASH_SIZE + AES_BLOCK_SIZE - 1) / AES_BLOCK_SIZE) * AES_BLOCK…
|