Home
last modified time | relevance | path

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

/Linux-v5.4/crypto/asymmetric_keys/
Dasym_tpm.c39 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_loadkey2() local
57 ret = tpm_get_random(NULL, nonceodd, TPM_NONCE_SIZE); in tpm_loadkey2()
65 nonceodd, cont, sizeof(uint32_t), &ordinal, in tpm_loadkey2()
78 storebytes(tb, nonceodd, TPM_NONCE_SIZE); in tpm_loadkey2()
88 ret = TSS_checkhmac1(tb->data, ordinal, nonceodd, keyauth, in tpm_loadkey2()
123 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_unbind() local
143 ret = tpm_get_random(NULL, nonceodd, TPM_NONCE_SIZE); in tpm_unbind()
151 nonceodd, cont, sizeof(uint32_t), &ordinal, in tpm_unbind()
166 storebytes(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unbind()
178 ret = TSS_checkhmac1(tb->data, ordinal, nonceodd, in tpm_unbind()
[all …]
/Linux-v5.4/security/keys/
Dtrusted.c460 unsigned char nonceodd[TPM_NONCE_SIZE]; member
504 ret = tpm_get_random(chip, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
520 sess.enonce, td->nonceodd, cont, in tpm_seal()
528 sess.enonce, td->nonceodd, cont, in tpm_seal()
549 storebytes(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
565 ret = TSS_checkhmac1(tb->data, ordinal, td->nonceodd, sess.secret, in tpm_seal()
588 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_unseal() local
614 ret = tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
620 enonce1, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
625 enonce2, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
[all …]