Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/security/keys/trusted-keys/
Dtrusted_tpm2.c44 tpm_buf_append(buf, nonce, nonce_len); in tpm2_buf_append_auth()
50 tpm_buf_append(buf, hmac, hmac_len); in tpm2_buf_append_auth()
104 tpm_buf_append(&buf, options->blobauth, options->blobauth_len); in tpm2_seal_trusted()
107 tpm_buf_append(&buf, payload->key, payload->key_len); in tpm2_seal_trusted()
119 tpm_buf_append(&buf, options->policydigest, in tpm2_seal_trusted()
216 tpm_buf_append(&buf, payload->blob, blob_len); in tpm2_load_cmd()
Dtrusted_tpm1.c415 tpm_buf_append(tb, ononce, TPM_NONCE_SIZE); in osap()
543 tpm_buf_append(tb, td->encauth, SHA1_DIGEST_SIZE); in tpm_seal()
545 tpm_buf_append(tb, pcrinfo, pcrinfosize); in tpm_seal()
547 tpm_buf_append(tb, data, datalen); in tpm_seal()
549 tpm_buf_append(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
551 tpm_buf_append(tb, td->pubauth, SHA1_DIGEST_SIZE); in tpm_seal()
634 tpm_buf_append(tb, blob, bloblen); in tpm_unseal()
636 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
638 tpm_buf_append(tb, authdata1, SHA1_DIGEST_SIZE); in tpm_unseal()
640 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
[all …]
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dasym_tpm.c69 tpm_buf_append(tb, keyblob, keybloblen); in tpm_loadkey2()
71 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_loadkey2()
73 tpm_buf_append(tb, authdata, SHA1_DIGEST_SIZE); in tpm_loadkey2()
151 tpm_buf_append(tb, blob, bloblen); in tpm_unbind()
153 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unbind()
155 tpm_buf_append(tb, authdata, SHA1_DIGEST_SIZE); in tpm_unbind()
234 tpm_buf_append(tb, blob, bloblen); in tpm_sign()
236 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_sign()
238 tpm_buf_append(tb, authdata, SHA1_DIGEST_SIZE); in tpm_sign()
/kernel/linux/linux-5.10/include/linux/
Dtpm.h353 static inline void tpm_buf_append(struct tpm_buf *buf, in tpm_buf_append() function
376 tpm_buf_append(buf, &value, 1); in tpm_buf_append_u8()
383 tpm_buf_append(buf, (u8 *) &value2, 2); in tpm_buf_append_u16()
390 tpm_buf_append(buf, (u8 *) &value2, 4); in tpm_buf_append_u32()
/kernel/linux/linux-5.10/drivers/char/tpm/
Dtpm2-cmd.c195 tpm_buf_append(&buf, (const unsigned char *)pcr_select, in tpm2_pcr_read()
255 tpm_buf_append(&buf, (const unsigned char *)&auth_area, in tpm2_pcr_extend()
261 tpm_buf_append(&buf, (const unsigned char *)&digests[i].digest, in tpm2_pcr_extend()
Dtpm-sysfs.c50 tpm_buf_append(&tpm_buf, anti_replay, sizeof(anti_replay)); in pubek_show()
Dtpm1-cmd.c474 tpm_buf_append(&buf, hash, TPM_DIGEST_SIZE); in tpm1_pcr_extend()
Dtpm2-space.c85 tpm_buf_append(&tbuf, &buf[*offset], body_size); in tpm2_load_context()