Lines Matching refs:kr
779 #define CAMELLIA_F(x, kl, kr, y) ({ \ argument
780 u64 ii = x ^ (((u64)kl << 32) | kr); \
981 u64 kl, kr, ww; in camellia_setup128() local
988 kr = get_unaligned_be64(key + 8); in camellia_setup128()
994 subRL[1] = kr; in camellia_setup128()
997 ROLDQ(kl, kr, 15); in camellia_setup128()
1002 subRL[5] = kr; in camellia_setup128()
1005 ROLDQ(kl, kr, 30); in camellia_setup128()
1010 subRL[11] = kr; in camellia_setup128()
1013 ROLDQ(kl, kr, 15); in camellia_setup128()
1016 subRL[13] = kr; in camellia_setup128()
1018 ROLDQ(kl, kr, 17); in camellia_setup128()
1023 subRL[17] = kr; in camellia_setup128()
1026 ROLDQ(kl, kr, 17); in camellia_setup128()
1031 subRL[19] = kr; in camellia_setup128()
1034 ROLDQ(kl, kr, 17); in camellia_setup128()
1039 subRL[23] = kr; in camellia_setup128()
1043 kr = subRL[1]; in camellia_setup128()
1045 kr ^= ww; in camellia_setup128()
1046 CAMELLIA_F(kr, CAMELLIA_SIGMA2L, CAMELLIA_SIGMA2R, kl); in camellia_setup128()
1049 CAMELLIA_F(kl, CAMELLIA_SIGMA3L, CAMELLIA_SIGMA3R, kr); in camellia_setup128()
1050 kr ^= ww; in camellia_setup128()
1051 CAMELLIA_F(kr, CAMELLIA_SIGMA4L, CAMELLIA_SIGMA4R, ww); in camellia_setup128()
1057 subRL[3] = kr; in camellia_setup128()
1058 ROLDQ(kl, kr, 15); in camellia_setup128()
1061 subRL[7] = kr; in camellia_setup128()
1062 ROLDQ(kl, kr, 15); in camellia_setup128()
1065 subRL[9] = kr; in camellia_setup128()
1066 ROLDQ(kl, kr, 15); in camellia_setup128()
1069 ROLDQ(kl, kr, 15); in camellia_setup128()
1072 subRL[15] = kr; in camellia_setup128()
1073 ROLDQ(kl, kr, 34); in camellia_setup128()
1076 subRL[21] = kr; in camellia_setup128()
1077 ROLDQ(kl, kr, 17); in camellia_setup128()
1080 subRL[25] = kr; in camellia_setup128()
1087 u64 kl, kr; /* left half of key */ in camellia_setup256() local
1096 kr = get_unaligned_be64(key + 8); in camellia_setup256()
1104 subRL[1] = kr; in camellia_setup256()
1105 ROLDQ(kl, kr, 45); in camellia_setup256()
1109 subRL[13] = kr; in camellia_setup256()
1110 ROLDQ(kl, kr, 15); in camellia_setup256()
1114 subRL[17] = kr; in camellia_setup256()
1115 ROLDQ(kl, kr, 17); in camellia_setup256()
1119 subRL[23] = kr; in camellia_setup256()
1120 ROLDQ(kl, kr, 34); in camellia_setup256()
1124 subRL[31] = kr; in camellia_setup256()
1151 kr = subRL[1] ^ krr; in camellia_setup256()
1154 kr ^= ww; in camellia_setup256()
1155 CAMELLIA_F(kr, CAMELLIA_SIGMA2L, CAMELLIA_SIGMA2R, kl); in camellia_setup256()
1157 CAMELLIA_F(kl, CAMELLIA_SIGMA3L, CAMELLIA_SIGMA3R, kr); in camellia_setup256()
1158 kr ^= ww ^ krr; in camellia_setup256()
1159 CAMELLIA_F(kr, CAMELLIA_SIGMA4L, CAMELLIA_SIGMA4R, ww); in camellia_setup256()
1164 krr ^= kr; in camellia_setup256()
1171 ROLDQ(kl, kr, 15); in camellia_setup256()
1175 subRL[7] = kr; in camellia_setup256()
1176 ROLDQ(kl, kr, 30); in camellia_setup256()
1180 subRL[15] = kr; in camellia_setup256()
1182 ROLDQ(kl, kr, 32); in camellia_setup256()
1186 subRL[25] = kr; in camellia_setup256()
1188 ROLDQ(kl, kr, 17); in camellia_setup256()
1192 subRL[29] = kr; in camellia_setup256()