• Home
  • Raw
  • Download

Lines Matching refs:desc

180 	int (*init)(struct shash_desc *desc);
181 int (*update)(struct shash_desc *desc, const u8 *data,
183 int (*final)(struct shash_desc *desc, u8 *out);
184 int (*finup)(struct shash_desc *desc, const u8 *data,
186 int (*digest)(struct shash_desc *desc, const u8 *data,
188 int (*export)(struct shash_desc *desc, void *out);
189 int (*import)(struct shash_desc *desc, const void *in);
806 static inline void *shash_desc_ctx(struct shash_desc *desc) in shash_desc_ctx() argument
808 return desc->__ctx; in shash_desc_ctx()
842 int crypto_shash_digest(struct shash_desc *desc, const u8 *data,
857 static inline int crypto_shash_export(struct shash_desc *desc, void *out) in crypto_shash_export() argument
859 return crypto_shash_alg(desc->tfm)->export(desc, out); in crypto_shash_export()
874 static inline int crypto_shash_import(struct shash_desc *desc, const void *in) in crypto_shash_import() argument
876 struct crypto_shash *tfm = desc->tfm; in crypto_shash_import()
881 return crypto_shash_alg(tfm)->import(desc, in); in crypto_shash_import()
896 static inline int crypto_shash_init(struct shash_desc *desc) in crypto_shash_init() argument
898 struct crypto_shash *tfm = desc->tfm; in crypto_shash_init()
903 return crypto_shash_alg(tfm)->init(desc); in crypto_shash_init()
918 int crypto_shash_update(struct shash_desc *desc, const u8 *data,
935 int crypto_shash_final(struct shash_desc *desc, u8 *out);
952 int crypto_shash_finup(struct shash_desc *desc, const u8 *data,
955 static inline void shash_desc_zero(struct shash_desc *desc) in shash_desc_zero() argument
957 memzero_explicit(desc, in shash_desc_zero()
958 sizeof(*desc) + crypto_shash_descsize(desc->tfm)); in shash_desc_zero()