Lines Matching refs:srcdst
208 static void encrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in encrypt_callback() argument
217 twofish_ecb_enc_16way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
218 srcdst += bsize * TF_AVX2_PARALLEL_BLOCKS; in encrypt_callback()
223 twofish_ecb_enc_8way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
224 srcdst += bsize * 8; in encrypt_callback()
229 twofish_enc_blk_3way(ctx->ctx, srcdst, srcdst); in encrypt_callback()
230 srcdst += bsize * 3; in encrypt_callback()
234 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in encrypt_callback()
235 twofish_enc_blk(ctx->ctx, srcdst, srcdst); in encrypt_callback()
238 static void decrypt_callback(void *priv, u8 *srcdst, unsigned int nbytes) in decrypt_callback() argument
247 twofish_ecb_dec_16way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
248 srcdst += bsize * TF_AVX2_PARALLEL_BLOCKS; in decrypt_callback()
253 twofish_ecb_dec_8way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
254 srcdst += bsize * 8; in decrypt_callback()
259 twofish_dec_blk_3way(ctx->ctx, srcdst, srcdst); in decrypt_callback()
260 srcdst += bsize * 3; in decrypt_callback()
264 for (i = 0; i < nbytes / bsize; i++, srcdst += bsize) in decrypt_callback()
265 twofish_dec_blk(ctx->ctx, srcdst, srcdst); in decrypt_callback()