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