Lines Matching refs:blob_len
120 payload->blob_len); in tpm2_key_decode()
244 int blob_len = 0; in tpm2_seal_trusted() local
328 blob_len = be32_to_cpup((__be32 *) &buf.data[TPM_HEADER_SIZE]); in tpm2_seal_trusted()
329 if (blob_len > MAX_BLOB_SIZE) { in tpm2_seal_trusted()
333 if (tpm_buf_length(&buf) < TPM_HEADER_SIZE + 4 + blob_len) { in tpm2_seal_trusted()
338 blob_len = tpm2_key_encode(payload, options, in tpm2_seal_trusted()
340 blob_len); in tpm2_seal_trusted()
351 if (blob_len < 0) in tpm2_seal_trusted()
352 rc = blob_len; in tpm2_seal_trusted()
354 payload->blob_len = blob_len; in tpm2_seal_trusted()
381 unsigned int blob_len; in tpm2_load_cmd() local
398 if (payload->blob_len < 4) in tpm2_load_cmd()
404 if (private_len + 2 + 2 > (payload->blob_len)) in tpm2_load_cmd()
408 if (private_len + 2 + public_len + 2 > payload->blob_len) in tpm2_load_cmd()
421 blob_len = private_len + public_len + 4; in tpm2_load_cmd()
422 if (blob_len > payload->blob_len) in tpm2_load_cmd()
436 tpm_buf_append(&buf, blob, blob_len); in tpm2_load_cmd()