Lines Matching refs:l
103 uint32_t l, r, t; in CAST_encrypt() local
107 l = data[0]; in CAST_encrypt()
110 E_CAST(0, k, l, r, +, ^, -); in CAST_encrypt()
111 E_CAST(1, k, r, l, ^, -, +); in CAST_encrypt()
112 E_CAST(2, k, l, r, -, +, ^); in CAST_encrypt()
113 E_CAST(3, k, r, l, +, ^, -); in CAST_encrypt()
114 E_CAST(4, k, l, r, ^, -, +); in CAST_encrypt()
115 E_CAST(5, k, r, l, -, +, ^); in CAST_encrypt()
116 E_CAST(6, k, l, r, +, ^, -); in CAST_encrypt()
117 E_CAST(7, k, r, l, ^, -, +); in CAST_encrypt()
118 E_CAST(8, k, l, r, -, +, ^); in CAST_encrypt()
119 E_CAST(9, k, r, l, +, ^, -); in CAST_encrypt()
120 E_CAST(10, k, l, r, ^, -, +); in CAST_encrypt()
121 E_CAST(11, k, r, l, -, +, ^); in CAST_encrypt()
124 E_CAST(12, k, l, r, +, ^, -); in CAST_encrypt()
125 E_CAST(13, k, r, l, ^, -, +); in CAST_encrypt()
126 E_CAST(14, k, l, r, -, +, ^); in CAST_encrypt()
127 E_CAST(15, k, r, l, +, ^, -); in CAST_encrypt()
130 data[1] = l & 0xffffffffL; in CAST_encrypt()
135 uint32_t l, r, t; in CAST_decrypt() local
139 l = data[0]; in CAST_decrypt()
143 E_CAST(15, k, l, r, +, ^, -); in CAST_decrypt()
144 E_CAST(14, k, r, l, -, +, ^); in CAST_decrypt()
145 E_CAST(13, k, l, r, ^, -, +); in CAST_decrypt()
146 E_CAST(12, k, r, l, +, ^, -); in CAST_decrypt()
149 E_CAST(11, k, l, r, -, +, ^); in CAST_decrypt()
150 E_CAST(10, k, r, l, ^, -, +); in CAST_decrypt()
151 E_CAST(9, k, l, r, +, ^, -); in CAST_decrypt()
152 E_CAST(8, k, r, l, -, +, ^); in CAST_decrypt()
153 E_CAST(7, k, l, r, ^, -, +); in CAST_decrypt()
154 E_CAST(6, k, r, l, +, ^, -); in CAST_decrypt()
155 E_CAST(5, k, l, r, -, +, ^); in CAST_decrypt()
156 E_CAST(4, k, r, l, ^, -, +); in CAST_decrypt()
157 E_CAST(3, k, l, r, +, ^, -); in CAST_decrypt()
158 E_CAST(2, k, r, l, -, +, ^); in CAST_decrypt()
159 E_CAST(1, k, l, r, ^, -, +); in CAST_decrypt()
160 E_CAST(0, k, r, l, +, ^, -); in CAST_decrypt()
162 data[1] = l & 0xffffffffL; in CAST_decrypt()
170 long l = length; in CAST_cbc_encrypt() local
177 for (l -= 8; l >= 0; l -= 8) { in CAST_cbc_encrypt()
190 if (l != -8) { in CAST_cbc_encrypt()
191 n2ln(in, tin0, tin1, l + 8); in CAST_cbc_encrypt()
208 for (l -= 8; l >= 0; l -= 8) { in CAST_cbc_encrypt()
221 if (l != -8) { in CAST_cbc_encrypt()
229 l2nn(tout0, tout1, out, l + 8); in CAST_cbc_encrypt()
240 #define CAST_exp(l, A, a, n) \ argument
241 A[n / 4] = l; \
242 a[n + 3] = (l)&0xff; \
243 a[n + 2] = (l >> 8) & 0xff; \
244 a[n + 1] = (l >> 16) & 0xff; \
245 a[n + 0] = (l >> 24) & 0xff;
256 uint32_t l, *K; in CAST_set_key() local
284 l = X[0] ^ S4[x[13]] ^ S5[x[15]] ^ S6[x[12]] ^ S7[x[14]] ^ S6[x[8]]; in CAST_set_key()
285 CAST_exp(l, Z, z, 0); in CAST_set_key()
286 l = X[2] ^ S4[z[0]] ^ S5[z[2]] ^ S6[z[1]] ^ S7[z[3]] ^ S7[x[10]]; in CAST_set_key()
287 CAST_exp(l, Z, z, 4); in CAST_set_key()
288 l = X[3] ^ S4[z[7]] ^ S5[z[6]] ^ S6[z[5]] ^ S7[z[4]] ^ S4[x[9]]; in CAST_set_key()
289 CAST_exp(l, Z, z, 8); in CAST_set_key()
290 l = X[1] ^ S4[z[10]] ^ S5[z[9]] ^ S6[z[11]] ^ S7[z[8]] ^ S5[x[11]]; in CAST_set_key()
291 CAST_exp(l, Z, z, 12); in CAST_set_key()
298 l = Z[2] ^ S4[z[5]] ^ S5[z[7]] ^ S6[z[4]] ^ S7[z[6]] ^ S6[z[0]]; in CAST_set_key()
299 CAST_exp(l, X, x, 0); in CAST_set_key()
300 l = Z[0] ^ S4[x[0]] ^ S5[x[2]] ^ S6[x[1]] ^ S7[x[3]] ^ S7[z[2]]; in CAST_set_key()
301 CAST_exp(l, X, x, 4); in CAST_set_key()
302 l = Z[1] ^ S4[x[7]] ^ S5[x[6]] ^ S6[x[5]] ^ S7[x[4]] ^ S4[z[1]]; in CAST_set_key()
303 CAST_exp(l, X, x, 8); in CAST_set_key()
304 l = Z[3] ^ S4[x[10]] ^ S5[x[9]] ^ S6[x[11]] ^ S7[x[8]] ^ S5[z[3]]; in CAST_set_key()
305 CAST_exp(l, X, x, 12); in CAST_set_key()
312 l = X[0] ^ S4[x[13]] ^ S5[x[15]] ^ S6[x[12]] ^ S7[x[14]] ^ S6[x[8]]; in CAST_set_key()
313 CAST_exp(l, Z, z, 0); in CAST_set_key()
314 l = X[2] ^ S4[z[0]] ^ S5[z[2]] ^ S6[z[1]] ^ S7[z[3]] ^ S7[x[10]]; in CAST_set_key()
315 CAST_exp(l, Z, z, 4); in CAST_set_key()
316 l = X[3] ^ S4[z[7]] ^ S5[z[6]] ^ S6[z[5]] ^ S7[z[4]] ^ S4[x[9]]; in CAST_set_key()
317 CAST_exp(l, Z, z, 8); in CAST_set_key()
318 l = X[1] ^ S4[z[10]] ^ S5[z[9]] ^ S6[z[11]] ^ S7[z[8]] ^ S5[x[11]]; in CAST_set_key()
319 CAST_exp(l, Z, z, 12); in CAST_set_key()
326 l = Z[2] ^ S4[z[5]] ^ S5[z[7]] ^ S6[z[4]] ^ S7[z[6]] ^ S6[z[0]]; in CAST_set_key()
327 CAST_exp(l, X, x, 0); in CAST_set_key()
328 l = Z[0] ^ S4[x[0]] ^ S5[x[2]] ^ S6[x[1]] ^ S7[x[3]] ^ S7[z[2]]; in CAST_set_key()
329 CAST_exp(l, X, x, 4); in CAST_set_key()
330 l = Z[1] ^ S4[x[7]] ^ S5[x[6]] ^ S6[x[5]] ^ S7[x[4]] ^ S4[z[1]]; in CAST_set_key()
331 CAST_exp(l, X, x, 8); in CAST_set_key()
332 l = Z[3] ^ S4[x[10]] ^ S5[x[9]] ^ S6[x[11]] ^ S7[x[8]] ^ S5[z[3]]; in CAST_set_key()
333 CAST_exp(l, X, x, 12); in CAST_set_key()
359 long l = length; in CAST_cfb64_encrypt() local
365 while (l--) { in CAST_cfb64_encrypt()
385 while (l--) { in CAST_cfb64_encrypt()