Lines Matching refs:shash
38 struct shash_desc shash; member
54 sdesc->shash.tfm = alg; in init_sdesc()
70 ret = crypto_shash_digest(&sdesc->shash, data, datalen, digest); in TSS_sha1()
93 ret = crypto_shash_init(&sdesc->shash); in TSS_rawhmac()
107 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_rawhmac()
113 ret = crypto_shash_final(&sdesc->shash, digest); in TSS_rawhmac()
144 ret = crypto_shash_init(&sdesc->shash); in TSS_authhmac()
157 ret = crypto_shash_update(&sdesc->shash, data, dlen); in TSS_authhmac()
163 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_authhmac()
218 ret = crypto_shash_init(&sdesc->shash); in TSS_checkhmac1()
221 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac1()
225 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac1()
235 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac1()
241 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_checkhmac1()
311 ret = crypto_shash_init(&sdesc->shash); in TSS_checkhmac2()
314 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&result, in TSS_checkhmac2()
318 ret = crypto_shash_update(&sdesc->shash, (const u8 *)&ordinal, in TSS_checkhmac2()
329 ret = crypto_shash_update(&sdesc->shash, buffer + dpos, dlen); in TSS_checkhmac2()
335 ret = crypto_shash_final(&sdesc->shash, paramdigest); in TSS_checkhmac2()