Lines Matching refs:SHA1_DIGEST_SIZE
126 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_authhmac()
165 ret = TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, in TSS_authhmac()
190 unsigned char testhmac[SHA1_DIGEST_SIZE]; in TSS_checkhmac1()
191 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_checkhmac1()
209 authdata = buffer + bufsize - SHA1_DIGEST_SIZE; in TSS_checkhmac1()
245 ret = TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, in TSS_checkhmac1()
251 if (memcmp(testhmac, authdata, SHA1_DIGEST_SIZE)) in TSS_checkhmac1()
280 unsigned char testhmac1[SHA1_DIGEST_SIZE]; in TSS_checkhmac2()
281 unsigned char testhmac2[SHA1_DIGEST_SIZE]; in TSS_checkhmac2()
282 unsigned char paramdigest[SHA1_DIGEST_SIZE]; in TSS_checkhmac2()
298 authdata1 = buffer + bufsize - (SHA1_DIGEST_SIZE + 1 in TSS_checkhmac2()
299 + SHA1_DIGEST_SIZE + SHA1_DIGEST_SIZE); in TSS_checkhmac2()
300 authdata2 = buffer + bufsize - (SHA1_DIGEST_SIZE); in TSS_checkhmac2()
339 ret = TSS_rawhmac(testhmac1, key1, keylen1, SHA1_DIGEST_SIZE, in TSS_checkhmac2()
344 if (memcmp(testhmac1, authdata1, SHA1_DIGEST_SIZE)) { in TSS_checkhmac2()
348 ret = TSS_rawhmac(testhmac2, key2, keylen2, SHA1_DIGEST_SIZE, in TSS_checkhmac2()
353 if (memcmp(testhmac2, authdata2, SHA1_DIGEST_SIZE)) in TSS_checkhmac2()
426 return TSS_rawhmac(s->secret, key, SHA1_DIGEST_SIZE, TPM_NONCE_SIZE, in osap()
456 unsigned char encauth[SHA1_DIGEST_SIZE];
457 unsigned char pubauth[SHA1_DIGEST_SIZE];
458 unsigned char xorwork[SHA1_DIGEST_SIZE * 2];
459 unsigned char xorhash[SHA1_DIGEST_SIZE];
498 memcpy(td->xorwork, sess.secret, SHA1_DIGEST_SIZE); in tpm_seal()
499 memcpy(td->xorwork + SHA1_DIGEST_SIZE, sess.enonce, SHA1_DIGEST_SIZE); in tpm_seal()
500 ret = TSS_sha1(td->xorwork, SHA1_DIGEST_SIZE * 2, td->xorhash); in tpm_seal()
513 for (i = 0; i < SHA1_DIGEST_SIZE; ++i) in tpm_seal()
519 ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, in tpm_seal()
521 sizeof(uint32_t), &ordinal, SHA1_DIGEST_SIZE, in tpm_seal()
527 ret = TSS_authhmac(td->pubauth, sess.secret, SHA1_DIGEST_SIZE, in tpm_seal()
529 sizeof(uint32_t), &ordinal, SHA1_DIGEST_SIZE, in tpm_seal()
543 storebytes(tb, td->encauth, SHA1_DIGEST_SIZE); in tpm_seal()
551 storebytes(tb, td->pubauth, SHA1_DIGEST_SIZE); in tpm_seal()
566 SHA1_DIGEST_SIZE, storedsize, TPM_DATA_OFFSET, 0, in tpm_seal()
591 unsigned char authdata1[SHA1_DIGEST_SIZE]; in tpm_unseal()
592 unsigned char authdata2[SHA1_DIGEST_SIZE]; in tpm_unseal()
640 storebytes(tb, authdata1, SHA1_DIGEST_SIZE); in tpm_unseal()
644 storebytes(tb, authdata2, SHA1_DIGEST_SIZE); in tpm_unseal()
654 keyauth, SHA1_DIGEST_SIZE, in tpm_unseal()
655 blobauth, SHA1_DIGEST_SIZE, in tpm_unseal()
790 if (strlen(args[0].from) != 2 * SHA1_DIGEST_SIZE) in getoptions()
793 SHA1_DIGEST_SIZE); in getoptions()
798 if (strlen(args[0].from) != 2 * SHA1_DIGEST_SIZE) in getoptions()
801 SHA1_DIGEST_SIZE); in getoptions()