Lines Matching refs:blob_len
120 payload->blob_len); in tpm2_key_decode()
246 int blob_len = 0; in tpm2_seal_trusted() local
340 blob_len = tpm_buf_read_u32(&buf, &offset); in tpm2_seal_trusted()
341 if (blob_len > MAX_BLOB_SIZE || buf.flags & TPM_BUF_BOUNDARY_ERROR) { in tpm2_seal_trusted()
345 if (buf.length - offset < blob_len) { in tpm2_seal_trusted()
350 blob_len = tpm2_key_encode(payload, options, &buf.data[offset], blob_len); in tpm2_seal_trusted()
362 if (blob_len < 0) in tpm2_seal_trusted()
363 rc = blob_len; in tpm2_seal_trusted()
365 payload->blob_len = blob_len; in tpm2_seal_trusted()
393 unsigned int blob_len; in tpm2_load_cmd() local
410 if (payload->blob_len < 4) in tpm2_load_cmd()
416 if (private_len + 2 + 2 > (payload->blob_len)) in tpm2_load_cmd()
420 if (private_len + 2 + public_len + 2 > payload->blob_len) in tpm2_load_cmd()
433 blob_len = private_len + public_len + 4; in tpm2_load_cmd()
434 if (blob_len > payload->blob_len) in tpm2_load_cmd()
451 tpm_buf_append(&buf, blob, blob_len); in tpm2_load_cmd()