Home
last modified time | relevance | path

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

/OK3568_Linux_fs/kernel/crypto/asymmetric_keys/
H A 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 …]
/OK3568_Linux_fs/kernel/security/keys/trusted-keys/
H A Dtrusted_tpm1.c457 unsigned char nonceodd[TPM_NONCE_SIZE]; member
501 ret = tpm_get_random(chip, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
523 sess.enonce, td->nonceodd, cont, in tpm_seal()
531 sess.enonce, td->nonceodd, cont, in tpm_seal()
549 tpm_buf_append(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
612 ret = tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
621 enonce1, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
626 enonce2, nonceodd, cont, sizeof(uint32_t), in tpm_unseal()
[all …]