Home
last modified time | relevance | path

Searched refs:iv (Results 1 – 25 of 36) sorted by relevance

12

/device/google/cuttlefish/host/commands/secure_env/
Dencrypted_serializable.cpp198 TPM2B_IV iv; in Serialize() local
199 iv.size = sizeof(iv.buffer); in Serialize()
201 .GenerateRandom(iv.buffer, sizeof(iv.buffer)); in Serialize()
220 iv, unencrypted.data(), encrypted.data(), encrypted_size)) { in Serialize()
230 buf = keymaster::append_uint32_to_buf(buf, end, iv.size); in Serialize()
231 buf = keymaster::append_to_buf(buf, end, iv.buffer, iv.size); in Serialize()
277 TPM2B_IV iv; in Deserialize() local
278 if (iv_size != sizeof(iv.buffer)) { in Deserialize()
280 << sizeof(iv.buffer); in Deserialize()
283 iv.size = sizeof(iv.buffer); in Deserialize()
[all …]
Dtpm_encrypt_decrypt.cpp30 ESYS_CONTEXT* esys, ESYS_TR key_handle, TpmAuth auth, const TPM2B_IV& iv, in TpmEncryptDecrypt() argument
32 if (iv.size != sizeof(iv.buffer)) { in TpmEncryptDecrypt()
33 LOG(ERROR) << "Input IV had wrong size: " << iv.size; in TpmEncryptDecrypt()
41 *init_vector_in = iv; in TpmEncryptDecrypt()
81 const TPM2B_IV& iv, uint8_t* data_in, uint8_t* data_out, in TpmEncrypt() argument
84 esys, key_handle, auth, iv, data_in, data_out, data_size, false); in TpmEncrypt()
88 const TPM2B_IV& iv, uint8_t* data_in, uint8_t* data_out, in TpmDecrypt() argument
91 esys, key_handle, auth, iv, data_in, data_out, data_size, true); in TpmDecrypt()
Dtpm_encrypt_decrypt.h35 const TPM2B_IV& iv, uint8_t* data_in, uint8_t* data_out,
45 const TPM2B_IV& iv, uint8_t* data_in, uint8_t* data_out,
Dtpm_keymaster_context.cpp410 KeymasterBlob iv; in UnwrapKey() local
415 error = parse_wrapped_key(wrapped_key_blob, &iv, &transit_key, &secure_key, in UnwrapKey()
472 .Authorization(keymaster::TAG_NONCE, iv) in UnwrapKey()
483 .Authorization(keymaster::TAG_NONCE, iv) in UnwrapKey()
/device/google/contexthub/lib/nanohub/
Daes.c344 void aesCbcInitForEncr(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv) in aesCbcInitForEncr() argument
347 memcpy(ctx->iv, iv, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcInitForEncr()
350 void aesCbcInitForDecr(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv) in aesCbcInitForDecr() argument
355 memcpy(ctx->iv, iv, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcInitForDecr()
363 ctx->iv[i] ^= *src++; in aesCbcEncr()
365 aesEncr(&ctx->aes, ctx->iv, dst); in aesCbcEncr()
366 memcpy(ctx->iv, dst, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcEncr()
375 tmp[i] ^= ctx->iv[i]; in aesCbcDecr()
377 memcpy(ctx->iv, src, sizeof(uint32_t[AES_BLOCK_WORDS])); in aesCbcDecr()
/device/google/contexthub/lib/include/nanohub/
Daes.h43 uint32_t iv[AES_BLOCK_WORDS]; member
46 void aesCbcInitForEncr(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv);
47 void aesCbcInitForDecr(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv);
/device/google/contexthub/firmware/os/inc/
Dbl.h70 … (*blAesCbcInitForEncr)(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv);
71 … (*blAesCbcInitForDecr)(struct AesCbcContext *ctx, const uint32_t *k, const uint32_t *iv);
/device/linaro/hikey/self-extractors_hikey960/hisilicon/
DLICENSE50 products that incorporate the Feedback; and (iv) sublicense (together with the rights to further su…
/device/linaro/poplar/proprietary/hisilicon/
DLICENSE26 …ise distribute and dispose of products that incorporate the Feedback; and (iv) sublicense (togethe…
/device/google/pantah/self-extractors_cheetah/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/caimito/self-extractors_tokay/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/shusky/self-extractors_shiba/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/tangorpro/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/raviole/self-extractors_raven/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/redfin/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/bluejay/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/caimito/self-extractors_komodo/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/comet/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/barbet/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/coral/self-extractors_flame/qcom/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/akita/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/redfin/self-extractors/qcom/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/sunfish/self-extractors/qcom/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/felix/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary
/device/google/sunfish/self-extractors/google_devices/
DLICENSE80 Purpose, (iv) remove or alter any of the copyright or proprietary

12