Lines Matching refs:L
524 #define IP(L, R, T) \ argument
526 T = L; \
527 L ^= R; \
528 L &= 0xf0f0f0f0; \
529 R ^= L; \
530 L ^= T; \
532 T = L; \
533 L ^= R; \
534 L &= 0xffff0000; \
535 R ^= L; \
536 L ^= T; \
538 T = L; \
539 L ^= R; \
540 L &= 0xcccccccc; \
541 R ^= L; \
542 L ^= T; \
544 T = L; \
545 L ^= R; \
546 L &= 0xff00ff00; \
547 R ^= L; \
548 L ^= T; \
550 T = L; \
551 L ^= R; \
552 L &= 0xaaaaaaaa; \
553 R ^= L; \
554 L ^= T; \
555 ROL(L, 1);
557 #define FP(L, R, T) \ argument
558 ROR(L, 1); \
559 T = L; \
560 L ^= R; \
561 L &= 0xaaaaaaaa; \
562 R ^= L; \
563 L ^= T; \
565 T = L; \
566 L ^= R; \
567 L &= 0xff00ff00; \
568 R ^= L; \
569 L ^= T; \
571 T = L; \
572 L ^= R; \
573 L &= 0xcccccccc; \
574 R ^= L; \
575 L ^= T; \
577 T = L; \
578 L ^= R; \
579 L &= 0xffff0000; \
580 R ^= L; \
581 L ^= T; \
583 T = L; \
584 L ^= R; \
585 L &= 0xf0f0f0f0; \
586 R ^= L; \
587 L ^= T; \
590 #define ROUND(L, R, A, B, K, d) \ argument
594 L ^= S8[0xff & B]; A &= 0x3f3f3f3f; \
595 L ^= S6[0xff & (B >> 8)]; B >>= 16; \
596 L ^= S7[0xff & A]; \
597 L ^= S5[0xff & (A >> 8)]; A >>= 16; \
598 L ^= S4[0xff & B]; \
599 L ^= S2[0xff & (B >> 8)]; \
600 L ^= S3[0xff & A]; \
601 L ^= S1[0xff & (A >> 8)];
809 u32 L, R, A, B; in des_encrypt() local
812 L = le32_to_cpu(s[0]); in des_encrypt()
815 IP(L, R, A); in des_encrypt()
817 ROUND(L, R, A, B, K, 2); in des_encrypt()
818 ROUND(R, L, A, B, K, 2); in des_encrypt()
820 FP(R, L, A); in des_encrypt()
823 d[1] = cpu_to_le32(L); in des_encrypt()
832 u32 L, R, A, B; in des_decrypt() local
835 L = le32_to_cpu(s[0]); in des_decrypt()
838 IP(L, R, A); in des_decrypt()
840 ROUND(L, R, A, B, K, -2); in des_decrypt()
841 ROUND(R, L, A, B, K, -2); in des_decrypt()
843 FP(R, L, A); in des_decrypt()
846 d[1] = cpu_to_le32(L); in des_decrypt()
890 u32 L, R, A, B; in des3_ede_encrypt() local
893 L = le32_to_cpu(s[0]); in des3_ede_encrypt()
896 IP(L, R, A); in des3_ede_encrypt()
898 ROUND(L, R, A, B, K, 2); in des3_ede_encrypt()
899 ROUND(R, L, A, B, K, 2); in des3_ede_encrypt()
902 ROUND(R, L, A, B, K, 2); in des3_ede_encrypt()
903 ROUND(L, R, A, B, K, 2); in des3_ede_encrypt()
906 ROUND(L, R, A, B, K, 2); in des3_ede_encrypt()
907 ROUND(R, L, A, B, K, 2); in des3_ede_encrypt()
909 FP(R, L, A); in des3_ede_encrypt()
912 d[1] = cpu_to_le32(L); in des3_ede_encrypt()
921 u32 L, R, A, B; in des3_ede_decrypt() local
924 L = le32_to_cpu(s[0]); in des3_ede_decrypt()
927 IP(L, R, A); in des3_ede_decrypt()
929 ROUND(L, R, A, B, K, -2); in des3_ede_decrypt()
930 ROUND(R, L, A, B, K, -2); in des3_ede_decrypt()
933 ROUND(R, L, A, B, K, -2); in des3_ede_decrypt()
934 ROUND(L, R, A, B, K, -2); in des3_ede_decrypt()
937 ROUND(L, R, A, B, K, -2); in des3_ede_decrypt()
938 ROUND(R, L, A, B, K, -2); in des3_ede_decrypt()
940 FP(R, L, A); in des3_ede_decrypt()
943 d[1] = cpu_to_le32(L); in des3_ede_decrypt()