Lines Matching defs:desc
42 static int nx_sha512_init(struct shash_desc *desc)
44 struct sha512_state_be *sctx = shash_desc_ctx(desc);
61 static int nx_sha512_update(struct shash_desc *desc, const u8 *data,
64 struct sha512_state_be *sctx = shash_desc_ctx(desc);
65 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base);
184 static int nx_sha512_final(struct shash_desc *desc, u8 *out)
186 struct sha512_state_be *sctx = shash_desc_ctx(desc);
187 struct nx_crypto_ctx *nx_ctx = crypto_tfm_ctx(&desc->tfm->base);
257 static int nx_sha512_export(struct shash_desc *desc, void *out)
259 struct sha512_state_be *sctx = shash_desc_ctx(desc);
266 static int nx_sha512_import(struct shash_desc *desc, const void *in)
268 struct sha512_state_be *sctx = shash_desc_ctx(desc);