Lines Matching defs:desc
144 int crypto_nhpoly1305_init(struct shash_desc *desc)
146 struct nhpoly1305_state *state = shash_desc_ctx(desc);
155 int crypto_nhpoly1305_update_helper(struct shash_desc *desc,
159 struct nhpoly1305_state *state = shash_desc_ctx(desc);
160 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm);
191 int crypto_nhpoly1305_update(struct shash_desc *desc,
194 return crypto_nhpoly1305_update_helper(desc, src, srclen, nh_generic);
198 int crypto_nhpoly1305_final_helper(struct shash_desc *desc, u8 *dst, nh_t nh_fn)
200 struct nhpoly1305_state *state = shash_desc_ctx(desc);
201 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm);
218 int crypto_nhpoly1305_final(struct shash_desc *desc, u8 *dst)
220 return crypto_nhpoly1305_final_helper(desc, dst, nh_generic);