Home
last modified time | relevance | path

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

/Linux-v5.10/security/keys/trusted-keys/
Dtrusted_tpm2.c133 rc = tpm_send(chip, buf.data, tpm_buf_length(&buf)); in tpm2_seal_trusted()
142 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 4 + blob_len) { in tpm2_seal_trusted()
214 rc = tpm_send(chip, buf.data, tpm_buf_length(&buf)); in tpm2_load_cmd()
263 rc = tpm_send(chip, buf.data, tpm_buf_length(&buf)); in tpm2_unseal_cmd()
275 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 6 + data_len) { in tpm2_unseal_cmd()
/Linux-v5.10/include/linux/
Dtpm.h338 static inline u32 tpm_buf_length(struct tpm_buf *buf) in tpm_buf_length() function
357 u32 len = tpm_buf_length(buf); in tpm_buf_append()
/Linux-v5.10/drivers/char/tpm/
Dtpm1-cmd.c563 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + in tpm1_get_random()
600 if (tpm_buf_length(&buf) < TPM_DIGEST_SIZE) { in tpm1_pcr_read()
Dtpm2-space.c151 body_size = tpm_buf_length(&tbuf) - TPM_HEADER_SIZE; in tpm2_save_context()
Dtpm2-cmd.c322 if (tpm_buf_length(&buf) < in tpm2_get_random()