Lines Matching refs:tfm
56 struct crypto_cipher *tfm) in crypto_ctr_crypt_final() argument
58 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_final()
59 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_ctr_crypt_final()
67 crypto_cipher_encrypt_one(tfm, keystream, ctrblk); in crypto_ctr_crypt_final()
75 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment() argument
78 crypto_cipher_alg(tfm)->cia_encrypt; in crypto_ctr_crypt_segment()
79 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_segment()
87 fn(crypto_cipher_tfm(tfm), dst, ctrblk); in crypto_ctr_crypt_segment()
101 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace() argument
104 crypto_cipher_alg(tfm)->cia_encrypt; in crypto_ctr_crypt_inplace()
105 unsigned int bsize = crypto_cipher_blocksize(tfm); in crypto_ctr_crypt_inplace()
106 unsigned long alignmask = crypto_cipher_alignmask(tfm); in crypto_ctr_crypt_inplace()
115 fn(crypto_cipher_tfm(tfm), keystream, ctrblk); in crypto_ctr_crypt_inplace()
132 struct crypto_blkcipher *tfm = desc->tfm; in crypto_ctr_crypt() local
133 struct crypto_ctr_ctx *ctx = crypto_blkcipher_ctx(tfm); in crypto_ctr_crypt()
158 static int crypto_ctr_init_tfm(struct crypto_tfm *tfm) in crypto_ctr_init_tfm() argument
160 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_ctr_init_tfm()
162 struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ctr_init_tfm()
174 static void crypto_ctr_exit_tfm(struct crypto_tfm *tfm) in crypto_ctr_exit_tfm() argument
176 struct crypto_ctr_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_ctr_exit_tfm()
280 struct crypto_ablkcipher *tfm = crypto_ablkcipher_reqtfm(req); in crypto_rfc3686_crypt() local
281 struct crypto_rfc3686_ctx *ctx = crypto_ablkcipher_ctx(tfm); in crypto_rfc3686_crypt()
283 unsigned long align = crypto_ablkcipher_alignmask(tfm); in crypto_rfc3686_crypt()
306 static int crypto_rfc3686_init_tfm(struct crypto_tfm *tfm) in crypto_rfc3686_init_tfm() argument
308 struct crypto_instance *inst = (void *)tfm->__crt_alg; in crypto_rfc3686_init_tfm()
310 struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc3686_init_tfm()
320 align = crypto_tfm_alg_alignmask(tfm); in crypto_rfc3686_init_tfm()
322 tfm->crt_ablkcipher.reqsize = align + in crypto_rfc3686_init_tfm()
329 static void crypto_rfc3686_exit_tfm(struct crypto_tfm *tfm) in crypto_rfc3686_exit_tfm() argument
331 struct crypto_rfc3686_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_rfc3686_exit_tfm()