Lines Matching refs:tpm2_key
448 const void *tpm2_key, in sha256_hash_host_and_tpm2_key() argument
456 assert(tpm2_key_size == 0 || tpm2_key); in sha256_hash_host_and_tpm2_key()
471 if (tpm2_key && EVP_DigestUpdate(md, tpm2_key, tpm2_key_size) != 1) in sha256_hash_host_and_tpm2_key()
496 _cleanup_(erase_and_freep) void *host_key = NULL, *tpm2_key = NULL; in encrypt_credential_and_warn()
581 &tpm2_key, in encrypt_credential_and_warn()
606 if (host_key && tpm2_key) in encrypt_credential_and_warn()
608 else if (tpm2_key) in encrypt_credential_and_warn()
624 r = sha256_hash_host_and_tpm2_key(host_key, host_key_size, tpm2_key, tpm2_key_size, md); in encrypt_credential_and_warn()
664 …ALIGN8(tpm2_key ? offsetof(struct tpm2_credential_header, policy_hash_and_blob) + tpm2_blob_size +… in encrypt_credential_and_warn()
683 if (tpm2_key) { in encrypt_credential_and_warn()
774 _cleanup_(erase_and_freep) void *host_key = NULL, *tpm2_key = NULL, *plaintext = NULL; in decrypt_credential_and_warn()
879 &tpm2_key, in decrypt_credential_and_warn()
904 sha256_hash_host_and_tpm2_key(host_key, host_key_size, tpm2_key, tpm2_key_size, md); in decrypt_credential_and_warn()