Lines Matching refs:ctx
20 asmlinkage void cast5_ecb_enc_16way(struct cast5_ctx *ctx, u8 *dst,
22 asmlinkage void cast5_ecb_dec_16way(struct cast5_ctx *ctx, u8 *dst,
24 asmlinkage void cast5_cbc_dec_16way(struct cast5_ctx *ctx, u8 *dst,
26 asmlinkage void cast5_ctr_16way(struct cast5_ctx *ctx, u8 *dst, const u8 *src,
51 struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm);
55 void (*fn)(struct cast5_ctx *ctx, u8 *dst, const u8 *src);
70 fn(ctx, wdst, wsrc);
85 fn(ctx, wdst, wsrc);
114 struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm);
128 __cast5_encrypt(ctx, (u8 *)dst, (u8 *)dst);
142 static unsigned int __cbc_decrypt(struct cast5_ctx *ctx,
164 cast5_cbc_dec_16way(ctx, (u8 *)dst, (u8 *)src);
178 __cast5_decrypt(ctx, (u8 *)dst, (u8 *)src);
199 struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm);
209 nbytes = __cbc_decrypt(ctx, &walk);
217 static void ctr_crypt_final(struct skcipher_walk *walk, struct cast5_ctx *ctx)
225 __cast5_encrypt(ctx, keystream, ctrblk);
232 struct cast5_ctx *ctx)
242 cast5_ctr_16way(ctx, (u8 *)dst, (u8 *)src,
264 __cast5_encrypt(ctx, (u8 *)&ctrblk, (u8 *)&ctrblk);
279 struct cast5_ctx *ctx = crypto_skcipher_ctx(tfm);
289 nbytes = __ctr_crypt(&walk, ctx);
296 ctr_crypt_final(&walk, ctx);