Lines Matching refs:shash
31 struct shash_desc shash; member
47 sdesc->shash.tfm = alg; in init_sdesc()
63 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest); in TSS_sha1()
86 ret = crypto_shash_init(&sdesc->shash); in TSS_rawhmac()
100 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_rawhmac()
106 ret = crypto_shash_final(&sdesc->shash, digest); in TSS_rawhmac()
137 ret = crypto_shash_init(&sdesc->shash); in TSS_authhmac()
150 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_authhmac()
156 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_authhmac()
211 ret = crypto_shash_init(&sdesc->shash); in TSS_checkhmac1()
214 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac1()
218 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac1()
228 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac1()
234 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_checkhmac1()
304 ret = crypto_shash_init(&sdesc->shash); in TSS_checkhmac2()
307 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac2()
311 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac2()
322 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac2()
328 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_checkhmac2()