Lines Matching defs:tfm
153 static int ecb_paes_init(struct crypto_skcipher *tfm)
155 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
163 static void ecb_paes_exit(struct crypto_skcipher *tfm)
165 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
188 static int ecb_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
192 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
204 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
205 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
266 static int cbc_paes_init(struct crypto_skcipher *tfm)
268 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
276 static void cbc_paes_exit(struct crypto_skcipher *tfm)
278 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
301 static int cbc_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
305 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
317 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
318 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
384 static int xts_paes_init(struct crypto_skcipher *tfm)
386 struct s390_pxts_ctx *ctx = crypto_skcipher_ctx(tfm);
395 static void xts_paes_exit(struct crypto_skcipher *tfm)
397 struct s390_pxts_ctx *ctx = crypto_skcipher_ctx(tfm);
440 static int xts_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
444 struct s390_pxts_ctx *ctx = crypto_skcipher_ctx(tfm);
475 return xts_verify_key(tfm, ckey, 2*ckey_len);
480 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
481 struct s390_pxts_ctx *ctx = crypto_skcipher_ctx(tfm);
561 static int ctr_paes_init(struct crypto_skcipher *tfm)
563 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
571 static void ctr_paes_exit(struct crypto_skcipher *tfm)
573 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
597 static int ctr_paes_set_key(struct crypto_skcipher *tfm, const u8 *in_key,
601 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);
628 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
629 struct s390_paes_ctx *ctx = crypto_skcipher_ctx(tfm);