Lines Matching refs:tfm
137 int (*setkey)(struct crypto_aead *tfm, const u8 *key,
139 int (*setauthsize)(struct crypto_aead *tfm, unsigned int authsize);
142 int (*init)(struct crypto_aead *tfm);
143 void (*exit)(struct crypto_aead *tfm);
159 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast() argument
161 return container_of(tfm, struct crypto_aead, base); in __crypto_aead_cast()
180 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm() argument
182 return &tfm->base; in crypto_aead_tfm()
191 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead() argument
193 crypto_destroy_tfm(tfm, crypto_aead_tfm(tfm)); in crypto_free_aead()
196 static inline const char *crypto_aead_driver_name(struct crypto_aead *tfm) in crypto_aead_driver_name() argument
198 return crypto_tfm_alg_driver_name(crypto_aead_tfm(tfm)); in crypto_aead_driver_name()
201 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg() argument
203 return container_of(crypto_aead_tfm(tfm)->__crt_alg, in crypto_aead_alg()
221 static inline unsigned int crypto_aead_ivsize(struct crypto_aead *tfm) in crypto_aead_ivsize() argument
223 return crypto_aead_alg_ivsize(crypto_aead_alg(tfm)); in crypto_aead_ivsize()
238 static inline unsigned int crypto_aead_authsize(struct crypto_aead *tfm) in crypto_aead_authsize() argument
240 return tfm->authsize; in crypto_aead_authsize()
263 static inline unsigned int crypto_aead_blocksize(struct crypto_aead *tfm) in crypto_aead_blocksize() argument
265 return crypto_tfm_alg_blocksize(crypto_aead_tfm(tfm)); in crypto_aead_blocksize()
268 static inline unsigned int crypto_aead_alignmask(struct crypto_aead *tfm) in crypto_aead_alignmask() argument
270 return crypto_tfm_alg_alignmask(crypto_aead_tfm(tfm)); in crypto_aead_alignmask()
273 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags() argument
275 return crypto_tfm_get_flags(crypto_aead_tfm(tfm)); in crypto_aead_get_flags()
278 static inline void crypto_aead_set_flags(struct crypto_aead *tfm, u32 flags) in crypto_aead_set_flags() argument
280 crypto_tfm_set_flags(crypto_aead_tfm(tfm), flags); in crypto_aead_set_flags()
283 static inline void crypto_aead_clear_flags(struct crypto_aead *tfm, u32 flags) in crypto_aead_clear_flags() argument
285 crypto_tfm_clear_flags(crypto_aead_tfm(tfm), flags); in crypto_aead_clear_flags()
304 int crypto_aead_setkey(struct crypto_aead *tfm,
317 int crypto_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize);
321 return __crypto_aead_cast(req->base.tfm); in crypto_aead_reqtfm()
386 static inline unsigned int crypto_aead_reqsize(struct crypto_aead *tfm) in crypto_aead_reqsize() argument
388 return tfm->reqsize; in crypto_aead_reqsize()
400 struct crypto_aead *tfm) in aead_request_set_tfm() argument
402 req->base.tfm = crypto_aead_tfm(tfm); in aead_request_set_tfm()
416 static inline struct aead_request *aead_request_alloc(struct crypto_aead *tfm, in aead_request_alloc() argument
421 req = kmalloc(sizeof(*req) + crypto_aead_reqsize(tfm), gfp); in aead_request_alloc()
424 aead_request_set_tfm(req, tfm); in aead_request_alloc()