Home
last modified time | relevance | path

Searched refs:TPM_DATA_OFFSET (Results 1 – 3 of 3) sorted by relevance

/kernel/linux/linux-5.10/security/keys/trusted-keys/
Dtrusted_tpm1.c421 s->handle = LOAD32(tb->data, TPM_DATA_OFFSET); in osap()
422 memcpy(s->enonce, &(tb->data[TPM_DATA_OFFSET + sizeof(uint32_t)]), in osap()
424 memcpy(enonce, &(tb->data[TPM_DATA_OFFSET + sizeof(uint32_t) + in osap()
445 *handle = LOAD32(tb->data, TPM_DATA_OFFSET); in oiap()
446 memcpy(nonce, &tb->data[TPM_DATA_OFFSET + sizeof(uint32_t)], in oiap()
558 sealinfosize = LOAD32(tb->data, TPM_DATA_OFFSET + sizeof(uint32_t)); in tpm_seal()
559 encdatasize = LOAD32(tb->data, TPM_DATA_OFFSET + sizeof(uint32_t) + in tpm_seal()
566 SHA1_DIGEST_SIZE, storedsize, TPM_DATA_OFFSET, 0, in tpm_seal()
571 memcpy(blob, tb->data + TPM_DATA_OFFSET, storedsize); in tpm_seal()
650 *datalen = LOAD32(tb->data, TPM_DATA_OFFSET); in tpm_unseal()
[all …]
/kernel/linux/linux-5.10/crypto/asymmetric_keys/
Dasym_tpm.c88 *newhandle = LOAD32(tb->data, TPM_DATA_OFFSET); in tpm_loadkey2()
163 datalen = LOAD32(tb->data, TPM_DATA_OFFSET); in tpm_unbind()
167 sizeof(uint32_t), TPM_DATA_OFFSET, in tpm_unbind()
168 datalen, TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_unbind()
175 memcpy(out, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_unbind()
246 datalen = LOAD32(tb->data, TPM_DATA_OFFSET); in tpm_sign()
250 sizeof(uint32_t), TPM_DATA_OFFSET, in tpm_sign()
251 datalen, TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_sign()
258 memcpy(out, tb->data + TPM_DATA_OFFSET + sizeof(uint32_t), in tpm_sign()
/kernel/linux/linux-5.10/include/keys/
Dtrusted_tpm.h13 #define TPM_DATA_OFFSET 10 macro