Lines Matching refs:desc
133 sha512_init(struct shash_desc *desc) in sha512_init() argument
135 struct sha512_state *sctx = shash_desc_ctx(desc); in sha512_init()
150 sha384_init(struct shash_desc *desc) in sha384_init() argument
152 struct sha512_state *sctx = shash_desc_ctx(desc); in sha384_init()
166 int crypto_sha512_update(struct shash_desc *desc, const u8 *data, in crypto_sha512_update() argument
169 struct sha512_state *sctx = shash_desc_ctx(desc); in crypto_sha512_update()
203 sha512_final(struct shash_desc *desc, u8 *hash) in sha512_final() argument
205 struct sha512_state *sctx = shash_desc_ctx(desc); in sha512_final()
219 crypto_sha512_update(desc, padding, pad_len); in sha512_final()
222 crypto_sha512_update(desc, (const u8 *)bits, sizeof(bits)); in sha512_final()
234 static int sha384_final(struct shash_desc *desc, u8 *hash) in sha384_final() argument
238 sha512_final(desc, D); in sha384_final()