Lines Matching refs:desc
238 int (*init)(struct shash_desc *desc);
239 int (*update)(struct shash_desc *desc, const u8 *data,
241 int (*final)(struct shash_desc *desc, u8 *out);
242 int (*finup)(struct shash_desc *desc, const u8 *data,
244 int (*digest)(struct shash_desc *desc, const u8 *data,
246 int (*export)(struct shash_desc *desc, void *out);
247 int (*import)(struct shash_desc *desc, const void *in);
248 int (*export_core)(struct shash_desc *desc, void *out);
249 int (*import_core)(struct shash_desc *desc, const void *in);
858 static inline void *shash_desc_ctx(struct shash_desc *desc) in shash_desc_ctx() argument
860 return desc->__ctx; in shash_desc_ctx()
894 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
931 int crypto_shash_export(struct shash_desc *desc, void *out);
945 int crypto_shash_import(struct shash_desc *desc, const void *in);
959 int crypto_shash_init(struct shash_desc *desc);
976 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,
991 static inline int crypto_shash_update(struct shash_desc *desc, const u8 *data, in crypto_shash_update() argument
994 return crypto_shash_finup(desc, data, len, NULL); in crypto_shash_update()
1011 static inline int crypto_shash_final(struct shash_desc *desc, u8 *out) in crypto_shash_final() argument
1013 return crypto_shash_finup(desc, NULL, 0, out); in crypto_shash_final()
1016 static inline void shash_desc_zero(struct shash_desc *desc) in shash_desc_zero() argument
1018 memzero_explicit(desc, in shash_desc_zero()
1019 sizeof(*desc) + crypto_shash_descsize(desc->tfm)); in shash_desc_zero()