Lines Matching refs:LR
26 #define LR(x, n) ((x) << (n) | (x) >> (32 - (n))) macro
216 t1 = MDS_mul(cs, LR(P[1], 8)); in twofish_encrypt()
218 P[3] = LR(P[3], 1) ^ (t0 + 2 * t1 + cs->K[2 * i + 9]); in twofish_encrypt()
220 t1 = MDS_mul(cs, LR(P[3], 8)); in twofish_encrypt()
222 P[1] = LR(P[1], 1) ^ (t0 + 2 * t1 + cs->K[2 * i + 11]); in twofish_encrypt()
244 t1 = MDS_mul(cs, LR(P[3], 8)); in twofish_decrypt()
245 P[0] = LR(P[0], 1) ^ (t0 + t1 + cs->K[2 * i + 8]); in twofish_decrypt()
248 t1 = MDS_mul(cs, LR(P[1], 8)); in twofish_decrypt()
249 P[2] = LR(P[2], 1) ^ (t0 + t1 + cs->K[2 * i + 6]); in twofish_decrypt()
301 B = LR(B, 8); in av_twofish_init()
303 cs->K[2 * i + 1] = LR((A + (2 * B)), 9); in av_twofish_init()