Lines Matching refs:crypto_tfm
135 struct crypto_tfm;
141 int (*cit_setkey)(struct crypto_tfm *tfm,
143 int (*cit_encrypt)(struct crypto_tfm *tfm,
147 int (*cit_encrypt_iv)(struct crypto_tfm *tfm,
151 int (*cit_decrypt)(struct crypto_tfm *tfm,
155 int (*cit_decrypt_iv)(struct crypto_tfm *tfm,
163 void (*dit_init)(struct crypto_tfm *tfm);
164 void (*dit_update)(struct crypto_tfm *tfm,
166 void (*dit_final)(struct crypto_tfm *tfm, u8 *out);
167 void (*dit_digest)(struct crypto_tfm *tfm, struct scatterlist *sg,
169 int (*dit_setkey)(struct crypto_tfm *tfm,
177 int (*cot_compress)(struct crypto_tfm *tfm,
180 int (*cot_decompress)(struct crypto_tfm *tfm,
189 struct crypto_tfm {
215 struct crypto_tfm *crypto_alloc_tfm(const char *alg_name, u32 tfm_flags);
216 void crypto_free_tfm(struct crypto_tfm *tfm);
221 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm)
226 static inline const char *crypto_tfm_alg_modname(struct crypto_tfm *tfm)
236 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm)
241 static inline unsigned int crypto_tfm_alg_min_keysize(struct crypto_tfm *tfm)
247 static inline unsigned int crypto_tfm_alg_max_keysize(struct crypto_tfm *tfm)
253 static inline unsigned int crypto_tfm_alg_ivsize(struct crypto_tfm *tfm)
259 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm)
264 static inline unsigned int crypto_tfm_alg_digestsize(struct crypto_tfm *tfm)
273 static inline void crypto_digest_init(struct crypto_tfm *tfm)
279 static inline void crypto_digest_update(struct crypto_tfm *tfm,
287 static inline void crypto_digest_final(struct crypto_tfm *tfm, u8 *out)
293 static inline void crypto_digest_digest(struct crypto_tfm *tfm,
301 static inline int crypto_digest_setkey(struct crypto_tfm *tfm,
310 static inline int crypto_cipher_setkey(struct crypto_tfm *tfm,
317 static inline int crypto_cipher_encrypt(struct crypto_tfm *tfm,
326 static inline int crypto_cipher_encrypt_iv(struct crypto_tfm *tfm,
336 static inline int crypto_cipher_decrypt(struct crypto_tfm *tfm,
345 static inline int crypto_cipher_decrypt_iv(struct crypto_tfm *tfm,
355 static inline void crypto_cipher_set_iv(struct crypto_tfm *tfm,
362 static inline void crypto_cipher_get_iv(struct crypto_tfm *tfm,
369 static inline int crypto_comp_compress(struct crypto_tfm *tfm,
377 static inline int crypto_comp_decompress(struct crypto_tfm *tfm,
389 void crypto_hmac_init(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen);
390 void crypto_hmac_update(struct crypto_tfm *tfm,
392 void crypto_hmac_final(struct crypto_tfm *tfm, u8 *key,
394 void crypto_hmac(struct crypto_tfm *tfm, u8 *key, unsigned int *keylen,