Lines Matching refs:desc

187 	unsigned int (*prfn)(const struct cipher_desc *desc, u8 *dst,
234 int (*encrypt)(struct blkcipher_desc *desc,
237 int (*decrypt)(struct blkcipher_desc *desc,
365 int (*encrypt)(struct blkcipher_desc *desc, struct scatterlist *dst,
367 int (*decrypt)(struct blkcipher_desc *desc, struct scatterlist *dst,
379 int (*init)(struct hash_desc *desc);
380 int (*update)(struct hash_desc *desc,
382 int (*final)(struct hash_desc *desc, u8 *out);
383 int (*digest)(struct hash_desc *desc, struct scatterlist *sg,
972 static inline int crypto_blkcipher_encrypt(struct blkcipher_desc *desc,
977 desc->info = crypto_blkcipher_crt(desc->tfm)->iv;
978 return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes);
981 static inline int crypto_blkcipher_encrypt_iv(struct blkcipher_desc *desc,
986 return crypto_blkcipher_crt(desc->tfm)->encrypt(desc, dst, src, nbytes);
989 static inline int crypto_blkcipher_decrypt(struct blkcipher_desc *desc,
994 desc->info = crypto_blkcipher_crt(desc->tfm)->iv;
995 return crypto_blkcipher_crt(desc->tfm)->decrypt(desc, dst, src, nbytes);
998 static inline int crypto_blkcipher_decrypt_iv(struct blkcipher_desc *desc,
1003 return crypto_blkcipher_crt(desc->tfm)->decrypt(desc, dst, src, nbytes);
1189 static inline int crypto_hash_init(struct hash_desc *desc)
1191 return crypto_hash_crt(desc->tfm)->init(desc);
1194 static inline int crypto_hash_update(struct hash_desc *desc,
1198 return crypto_hash_crt(desc->tfm)->update(desc, sg, nbytes);
1201 static inline int crypto_hash_final(struct hash_desc *desc, u8 *out)
1203 return crypto_hash_crt(desc->tfm)->final(desc, out);
1206 static inline int crypto_hash_digest(struct hash_desc *desc,
1210 return crypto_hash_crt(desc->tfm)->digest(desc, sg, nbytes, out);