Lines Matching refs:tfm
126 static int ecb_paes_init(struct crypto_tfm *tfm) in ecb_paes_init() argument
128 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_init()
135 static void ecb_paes_exit(struct crypto_tfm *tfm) in ecb_paes_exit() argument
137 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_exit()
142 static int ecb_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ecb_paes_set_key() argument
146 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ecb_paes_set_key()
154 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ecb_paes_set_key()
164 struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ecb_paes_crypt()
227 static int cbc_paes_init(struct crypto_tfm *tfm) in cbc_paes_init() argument
229 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in cbc_paes_init()
236 static void cbc_paes_exit(struct crypto_tfm *tfm) in cbc_paes_exit() argument
238 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in cbc_paes_exit()
261 static int cbc_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in cbc_paes_set_key() argument
265 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in cbc_paes_set_key()
273 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in cbc_paes_set_key()
282 struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in cbc_paes_crypt()
354 static int xts_paes_init(struct crypto_tfm *tfm) in xts_paes_init() argument
356 struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_paes_init()
364 static void xts_paes_exit(struct crypto_tfm *tfm) in xts_paes_exit() argument
366 struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_paes_exit()
394 static int xts_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in xts_paes_set_key() argument
398 struct s390_pxts_ctx *ctx = crypto_tfm_ctx(tfm); in xts_paes_set_key()
417 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in xts_paes_set_key()
430 return xts_check_key(tfm, ckey, 2*ckey_len); in xts_paes_set_key()
436 struct s390_pxts_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in xts_paes_crypt()
523 static int ctr_paes_init(struct crypto_tfm *tfm) in ctr_paes_init() argument
525 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ctr_paes_init()
532 static void ctr_paes_exit(struct crypto_tfm *tfm) in ctr_paes_exit() argument
534 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ctr_paes_exit()
558 static int ctr_paes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in ctr_paes_set_key() argument
562 struct s390_paes_ctx *ctx = crypto_tfm_ctx(tfm); in ctr_paes_set_key()
570 tfm->crt_flags |= CRYPTO_TFM_RES_BAD_KEY_LEN; in ctr_paes_set_key()
594 struct s390_paes_ctx *ctx = crypto_blkcipher_ctx(desc->tfm); in ctr_paes_crypt()