Home
last modified time | relevance | path

Searched refs:nonceodd (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/crypto/asymmetric_keys/
Dasym_tpm.c35 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_loadkey2() local
53 ret = tpm_get_random(NULL, nonceodd, TPM_NONCE_SIZE); in tpm_loadkey2()
61 nonceodd, cont, sizeof(uint32_t), &ordinal, in tpm_loadkey2()
71 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_loadkey2()
81 ret = TSS_checkhmac1(tb->data, ordinal, nonceodd, keyauth, in tpm_loadkey2()
113 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_unbind() local
133 ret = tpm_get_random(NULL, nonceodd, TPM_NONCE_SIZE); in tpm_unbind()
141 nonceodd, cont, sizeof(uint32_t), &ordinal, in tpm_unbind()
153 tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unbind()
165 ret = TSS_checkhmac1(tb->data, ordinal, nonceodd, in tpm_unbind()
[all …]
/Linux-v5.10/security/keys/trusted-keys/
Dtrusted_tpm1.c454 unsigned char nonceodd[TPM_NONCE_SIZE]; member
498 ret = tpm_get_random(chip, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
514 sess.enonce, td->nonceodd, cont, in tpm_seal()
522 sess.enonce, td->nonceodd, cont, in tpm_seal()
540 tpm_buf_append(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
556 ret = TSS_checkhmac1(tb->data, ordinal, td->nonceodd, sess.secret, in tpm_seal()
579 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_unseal() local
603 ret = tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
609 enonce1, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
614 enonce2, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
[all …]