Home
last modified time | relevance | path

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

/linux/drivers/char/tpm/
H A Dtpm-buf.c133 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length) in tpm_buf_append() function
154 EXPORT_SYMBOL_GPL(tpm_buf_append);
158 tpm_buf_append(buf, &value, 1); in tpm_buf_append_u8()
166 tpm_buf_append(buf, (u8 *)&value2, 2); in tpm_buf_append_u16()
174 tpm_buf_append(buf, (u8 *)&value2, 4); in tpm_buf_append_u32()
H A Dtpm2-sessions.c331 tpm_buf_append(buf, passphrase, passphrase_len); in tpm_buf_append_auth()
413 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
417 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
507 tpm_buf_append(buf, encoded_key, EC_PT_SZ); in tpm_buf_append_salt()
510 tpm_buf_append(buf, encoded_key, EC_PT_SZ); in tpm_buf_append_salt()
1035 tpm_buf_append(buf, auth->our_nonce, sizeof(auth->our_nonce)); in tpm2_start_auth_session()
1358 tpm_buf_append(buf, template->data, template->length); in tpm2_create_primary()
H A Dtpm2-cmd.c144 tpm_buf_append(buf, (const unsigned char *)pcr_select, in tpm2_pcr_read()
212 tpm_buf_append(buf, (const unsigned char *)&digests[i].digest, in tpm2_pcr_extend()
H A Dtpm-sysfs.c55 tpm_buf_append(tpm_buf, anti_replay, sizeof(anti_replay)); in pubek_show()
H A Dtpm1-cmd.c465 tpm_buf_append(buf, hash, TPM_DIGEST_SIZE); in tpm1_pcr_extend()
H A Dtpm2-space.c74 tpm_buf_append(tbuf, &buf[*offset], body_size); in tpm2_load_context()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c214 tpm_buf_append(buf, nonce, nonce_len); in tpm2_buf_append_auth()
220 tpm_buf_append(buf, hmac, hmac_len); in tpm2_buf_append_auth()
289 tpm_buf_append(sized, options->blobauth, options->blobauth_len); in tpm2_seal_trusted()
292 tpm_buf_append(sized, payload->key, payload->key_len); in tpm2_seal_trusted()
293 tpm_buf_append(buf, sized->data, sized->length); in tpm2_seal_trusted()
309 tpm_buf_append(sized, options->policydigest, options->policydigest_len); in tpm2_seal_trusted()
315 tpm_buf_append(buf, sized->data, sized->length); in tpm2_seal_trusted()
451 tpm_buf_append(buf, blob, blob_len); in tpm2_load_cmd()
H A Dtrusted_tpm1.c376 tpm_buf_append(tb, ononce, TPM_NONCE_SIZE); in osap()
501 tpm_buf_append(tb, td->encauth, SHA1_DIGEST_SIZE); in tpm_seal()
503 tpm_buf_append(tb, pcrinfo, pcrinfosize); in tpm_seal()
505 tpm_buf_append(tb, data, datalen); in tpm_seal()
507 tpm_buf_append(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
509 tpm_buf_append(tb, td->pubauth, SHA1_DIGEST_SIZE); in tpm_seal()
592 tpm_buf_append(tb, blob, bloblen); in tpm_unseal()
594 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
596 tpm_buf_append(tb, authdata1, SHA1_DIGEST_SIZE); in tpm_unseal()
598 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
[all …]
/linux/include/linux/
H A Dtpm_buf.h51 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length);