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.c105 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length) in tpm_buf_append() function
125 EXPORT_SYMBOL_GPL(tpm_buf_append);
129 tpm_buf_append(buf, &value, 1); in tpm_buf_append_u8()
137 tpm_buf_append(buf, (u8 *)&value2, 2); in tpm_buf_append_u16()
145 tpm_buf_append(buf, (u8 *)&value2, 4); in tpm_buf_append_u32()
H A Dtpm2-sessions.c295 tpm_buf_append(buf, passphrase, passphrase_len); in tpm_buf_append_auth()
378 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
382 tpm_buf_append(buf, nonce, SHA256_DIGEST_SIZE); in tpm_buf_append_hmac_session()
515 tpm_buf_append(buf, encoded_key, EC_PT_SZ); in tpm_buf_append_salt()
518 tpm_buf_append(buf, encoded_key, EC_PT_SZ); in tpm_buf_append_salt()
1010 tpm_buf_append(&buf, auth->our_nonce, sizeof(auth->our_nonce)); in tpm2_start_auth_session()
1329 tpm_buf_append(&buf, template.data, template.length); in tpm2_create_primary()
H A Dtpm2-cmd.c199 tpm_buf_append(&buf, (const unsigned char *)pcr_select, in tpm2_pcr_read()
264 tpm_buf_append(&buf, (const unsigned char *)&digests[i].digest, in tpm2_pcr_extend()
H A Dtpm-sysfs.c50 tpm_buf_append(&tpm_buf, anti_replay, sizeof(anti_replay)); in pubek_show()
H A Dtpm1-cmd.c474 tpm_buf_append(&buf, hash, TPM_DIGEST_SIZE); in tpm1_pcr_extend()
H A Dtpm2-space.c85 tpm_buf_append(&tbuf, &buf[*offset], body_size); in tpm2_load_context()
/linux/security/keys/trusted-keys/
H A Dtrusted_tpm2.c222 tpm_buf_append(buf, nonce, nonce_len); in tpm2_buf_append_auth()
228 tpm_buf_append(buf, hmac, hmac_len); in tpm2_buf_append_auth()
294 tpm_buf_append(&sized, options->blobauth, options->blobauth_len); in tpm2_seal_trusted()
297 tpm_buf_append(&sized, payload->key, payload->key_len); in tpm2_seal_trusted()
298 tpm_buf_append(&buf, sized.data, sized.length); in tpm2_seal_trusted()
314 tpm_buf_append(&sized, options->policydigest, options->policydigest_len); in tpm2_seal_trusted()
320 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.c419 tpm_buf_append(tb, ononce, TPM_NONCE_SIZE); in osap()
547 tpm_buf_append(tb, td->encauth, SHA1_DIGEST_SIZE); in tpm_seal()
549 tpm_buf_append(tb, pcrinfo, pcrinfosize); in tpm_seal()
551 tpm_buf_append(tb, data, datalen); in tpm_seal()
553 tpm_buf_append(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
555 tpm_buf_append(tb, td->pubauth, SHA1_DIGEST_SIZE); in tpm_seal()
638 tpm_buf_append(tb, blob, bloblen); in tpm_unseal()
640 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
642 tpm_buf_append(tb, authdata1, SHA1_DIGEST_SIZE); in tpm_unseal()
644 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
[all …]
/linux/include/linux/
H A Dtpm.h417 void tpm_buf_append(struct tpm_buf *buf, const u8 *new_data, u16 new_length);