Lines Matching refs:iv
417 uint8_t iv[]; member
498 _cleanup_free_ void *tpm2_blob = NULL, *tpm2_policy_hash = NULL, *iv = NULL, *output = NULL; in encrypt_credential_and_warn() local
641 iv = malloc(ivsz); in encrypt_credential_and_warn()
642 if (!iv) in encrypt_credential_and_warn()
645 r = genuine_random_bytes(iv, ivsz, RANDOM_BLOCK); in encrypt_credential_and_warn()
657 if (EVP_EncryptInit_ex(context, cc, NULL, md, iv) != 1) in encrypt_credential_and_warn()
663 ALIGN8(offsetof(struct encrypted_credential_header, iv) + ivsz) + in encrypt_credential_and_warn()
679 memcpy(h->iv, iv, ivsz); in encrypt_credential_and_warn()
681 p = ALIGN8(offsetof(struct encrypted_credential_header, iv) + ivsz); in encrypt_credential_and_warn()
822 if (input_size < offsetof(struct encrypted_credential_header, iv)) in decrypt_credential_and_warn()
838 ALIGN8(offsetof(struct encrypted_credential_header, iv) + le32toh(h->iv_size)) + in decrypt_credential_and_warn()
844 p = ALIGN8(offsetof(struct encrypted_credential_header, iv) + le32toh(h->iv_size)); in decrypt_credential_and_warn()
864 ALIGN8(offsetof(struct encrypted_credential_header, iv) + le32toh(h->iv_size)) + in decrypt_credential_and_warn()
927 if (EVP_DecryptInit_ex(context, NULL, NULL, md, h->iv) != 1) in decrypt_credential_and_warn()