Lines Matching refs:TPM_NONCE_SIZE
166 paramdigest, TPM_NONCE_SIZE, h1, in TSS_authhmac()
167 TPM_NONCE_SIZE, h2, 1, &c, 0, 0); in TSS_authhmac()
211 enonce = continueflag - TPM_NONCE_SIZE; in TSS_checkhmac1()
246 TPM_NONCE_SIZE, enonce, TPM_NONCE_SIZE, ononce, in TSS_checkhmac1()
303 enonce1 = continueflag1 - TPM_NONCE_SIZE; in TSS_checkhmac2()
304 enonce2 = continueflag2 - TPM_NONCE_SIZE; in TSS_checkhmac2()
340 paramdigest, TPM_NONCE_SIZE, enonce1, in TSS_checkhmac2()
341 TPM_NONCE_SIZE, ononce, 1, continueflag1, 0, 0); in TSS_checkhmac2()
349 paramdigest, TPM_NONCE_SIZE, enonce2, in TSS_checkhmac2()
350 TPM_NONCE_SIZE, ononce, 1, continueflag2, 0, 0); in TSS_checkhmac2()
401 unsigned char enonce[TPM_NONCE_SIZE]; in osap()
402 unsigned char ononce[TPM_NONCE_SIZE]; in osap()
405 ret = tpm_get_random(chip, ononce, TPM_NONCE_SIZE); in osap()
406 if (ret != TPM_NONCE_SIZE) in osap()
415 storebytes(tb, ononce, TPM_NONCE_SIZE); in osap()
423 TPM_NONCE_SIZE); in osap()
425 TPM_NONCE_SIZE]), TPM_NONCE_SIZE); in osap()
426 return TSS_rawhmac(s->secret, key, SHA1_DIGEST_SIZE, TPM_NONCE_SIZE, in osap()
427 enonce, TPM_NONCE_SIZE, ononce, 0, 0); in osap()
450 TPM_NONCE_SIZE); in oiap()
460 unsigned char nonceodd[TPM_NONCE_SIZE];
504 ret = tpm_get_random(chip, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
505 if (ret != TPM_NONCE_SIZE) in tpm_seal()
549 storebytes(tb, td->nonceodd, TPM_NONCE_SIZE); in tpm_seal()
588 unsigned char nonceodd[TPM_NONCE_SIZE]; in tpm_unseal()
589 unsigned char enonce1[TPM_NONCE_SIZE]; in tpm_unseal()
590 unsigned char enonce2[TPM_NONCE_SIZE]; in tpm_unseal()
614 ret = tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
615 if (ret != TPM_NONCE_SIZE) { in tpm_unseal()
619 ret = TSS_authhmac(authdata1, keyauth, TPM_NONCE_SIZE, in tpm_unseal()
624 ret = TSS_authhmac(authdata2, blobauth, TPM_NONCE_SIZE, in tpm_unseal()
638 storebytes(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()
642 storebytes(tb, nonceodd, TPM_NONCE_SIZE); in tpm_unseal()