Home
last modified time | relevance | path

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

/Linux-v5.15/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.15/security/keys/trusted-keys/
Dtrusted_tpm1.c450 unsigned char nonceodd[TPM_NONCE_SIZE]; member
494 ret = tpm_get_random(chip, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
516 sess.enonce, td->nonceodd, cont, in tpm_seal()
524 sess.enonce, td->nonceodd, cont, in tpm_seal()
542 tpm_buf_append(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
558 ret = TSS_checkhmac1(tb->data, ordinal, td->nonceodd, sess.secret, in tpm_seal()
581 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_unseal() local
605 ret = tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
614 enonce1, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
619 enonce2, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
[all …]