Lines Matching refs:tfm
44 struct crypto_cipher *tfm,
49 crypto_cipher_alg(tfm)->cia_encrypt;
50 int bsize = crypto_cipher_blocksize(tfm);
58 fn(crypto_cipher_tfm(tfm), dst, iv);
70 struct crypto_cipher *tfm,
75 crypto_cipher_alg(tfm)->cia_encrypt;
76 int bsize = crypto_cipher_blocksize(tfm);
83 fn(crypto_cipher_tfm(tfm), src, src);
99 struct crypto_blkcipher *tfm = desc->tfm;
100 struct crypto_cbc_ctx *ctx = crypto_blkcipher_ctx(tfm);
123 struct crypto_cipher *tfm,
128 crypto_cipher_alg(tfm)->cia_decrypt;
129 int bsize = crypto_cipher_blocksize(tfm);
136 fn(crypto_cipher_tfm(tfm), dst, src);
151 struct crypto_cipher *tfm,
156 crypto_cipher_alg(tfm)->cia_decrypt;
157 int bsize = crypto_cipher_blocksize(tfm);
158 unsigned long alignmask = crypto_cipher_alignmask(tfm);
171 fn(crypto_cipher_tfm(tfm), src, src);
188 struct crypto_blkcipher *tfm = desc->tfm;
189 struct crypto_cbc_ctx *ctx = crypto_blkcipher_ctx(tfm);
241 static int crypto_cbc_init_tfm(struct crypto_tfm *tfm)
243 struct crypto_instance *inst = (void *)tfm->__crt_alg;
245 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm);
248 switch (crypto_tfm_alg_blocksize(tfm)) {
258 if (crypto_tfm_alg_blocksize(tfm) % 4)
272 static void crypto_cbc_exit_tfm(struct crypto_tfm *tfm)
274 struct crypto_cbc_ctx *ctx = crypto_tfm_ctx(tfm);