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