Home
last modified time | relevance | path

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

/drivers/char/tpm/
Dtpm2-cmd.c448 unsigned int blob_len; in tpm2_seal_trusted() local
519 blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_seal_trusted()
520 if (blob_len > MAX_BLOB_SIZE) { in tpm2_seal_trusted()
525 memcpy(payload->blob, &buf.data[TPM_HEADER_SIZE + 4], blob_len); in tpm2_seal_trusted()
526 payload->blob_len = blob_len; in tpm2_seal_trusted()
557 unsigned int blob_len; in tpm2_load_cmd() local
561 if (private_len > (payload->blob_len - 2)) in tpm2_load_cmd()
565 blob_len = private_len + public_len + 4; in tpm2_load_cmd()
566 if (blob_len > payload->blob_len) in tpm2_load_cmd()
580 tpm_buf_append(&buf, payload->blob, blob_len); in tpm2_load_cmd()