Lines Matching refs:shash

45 	struct shash_alg *shash = crypto_shash_alg(tfm);  in shash_setkey_unaligned()  local
58 err = shash->setkey(tfm, alignbuffer, keylen); in shash_setkey_unaligned()
72 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_setkey() local
79 err = shash->setkey(tfm, key, keylen); in crypto_shash_setkey()
82 shash_set_needkey(tfm, shash); in crypto_shash_setkey()
95 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_update_unaligned() local
114 err = shash->update(desc, buf, unaligned_len); in shash_update_unaligned()
118 shash->update(desc, data + unaligned_len, len - unaligned_len); in shash_update_unaligned()
125 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_update() local
131 return shash->update(desc, data, len); in crypto_shash_update()
139 struct shash_alg *shash = crypto_shash_alg(tfm); in shash_final_unaligned() local
152 err = shash->final(desc, buf); in shash_final_unaligned()
166 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_final() local
172 return shash->final(desc, out); in crypto_shash_final()
187 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_finup() local
193 return shash->finup(desc, data, len, out); in crypto_shash_finup()
208 struct shash_alg *shash = crypto_shash_alg(tfm); in crypto_shash_digest() local
217 return shash->digest(desc, data, len, out); in crypto_shash_digest()
383 struct crypto_shash *shash; in crypto_init_shash_ops_async() local
388 shash = crypto_create_tfm(calg, &crypto_shash_type); in crypto_init_shash_ops_async()
389 if (IS_ERR(shash)) { in crypto_init_shash_ops_async()
391 return PTR_ERR(shash); in crypto_init_shash_ops_async()
394 *ctx = shash; in crypto_init_shash_ops_async()
405 crypto_ahash_set_flags(crt, crypto_shash_get_flags(shash) & in crypto_init_shash_ops_async()
411 crt->reqsize = sizeof(struct shash_desc) + crypto_shash_descsize(shash); in crypto_init_shash_ops_async()
456 struct shash_instance *shash = shash_instance(inst); in crypto_shash_free_instance() local
458 shash->free(shash); in crypto_shash_free_instance()