Lines Matching defs:tfm

71 static int setkey_fallback_cip(struct crypto_tfm *tfm, const u8 *in_key,
74 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
77 sctx->fallback.cip->base.crt_flags |= (tfm->crt_flags &
83 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
86 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
97 return setkey_fallback_cip(tfm, in_key, key_len);
104 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
106 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
115 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
117 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
127 static int fallback_init_cip(struct crypto_tfm *tfm)
129 const char *name = tfm->__crt_alg->cra_name;
130 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
144 static void fallback_exit_cip(struct crypto_tfm *tfm)
146 struct s390_aes_ctx *sctx = crypto_tfm_ctx(tfm);
174 static int setkey_fallback_skcipher(struct crypto_skcipher *tfm, const u8 *key,
177 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
182 crypto_skcipher_get_flags(tfm) &
200 static int ecb_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
203 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
214 return setkey_fallback_skcipher(tfm, in_key, key_len);
223 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
224 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
253 static int fallback_init_skcipher(struct crypto_skcipher *tfm)
255 const char *name = crypto_tfm_alg_name(&tfm->base);
256 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
267 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) +
272 static void fallback_exit_skcipher(struct crypto_skcipher *tfm)
274 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
296 static int cbc_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
299 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
310 return setkey_fallback_skcipher(tfm, in_key, key_len);
319 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
320 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
377 static int xts_fallback_setkey(struct crypto_skcipher *tfm, const u8 *key,
380 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm);
384 crypto_skcipher_get_flags(tfm) &
389 static int xts_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
392 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm);
396 err = xts_fallback_setkey(tfm, in_key, key_len);
423 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
424 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm);
489 static int xts_fallback_init(struct crypto_skcipher *tfm)
491 const char *name = crypto_tfm_alg_name(&tfm->base);
492 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm);
502 crypto_skcipher_set_reqsize(tfm, sizeof(struct skcipher_request) +
507 static void xts_fallback_exit(struct crypto_skcipher *tfm)
509 struct s390_xts_ctx *xts_ctx = crypto_skcipher_ctx(tfm);
532 static int ctr_aes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
535 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
546 return setkey_fallback_skcipher(tfm, in_key, key_len);
570 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
571 struct s390_aes_ctx *sctx = crypto_skcipher_ctx(tfm);
634 static int gcm_aes_setkey(struct crypto_aead *tfm, const u8 *key,
637 struct s390_aes_ctx *ctx = crypto_aead_ctx(tfm);
658 static int gcm_aes_setauthsize(struct crypto_aead *tfm, unsigned int authsize)
831 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
832 struct s390_aes_ctx *ctx = crypto_aead_ctx(tfm);
833 unsigned int ivsize = crypto_aead_ivsize(tfm);
834 unsigned int taglen = crypto_aead_authsize(tfm);