Lines Matching refs:r3
237 u32 r0, r1, r2, r3, r4; in __serpent_setkey() local
254 r3 = le32_to_cpu(k[6]); in __serpent_setkey()
258 keyiter(le32_to_cpu(k[1]), r1, r0, r3, 1, 1); in __serpent_setkey()
260 keyiter(le32_to_cpu(k[3]), r3, r2, r0, 3, 3); in __serpent_setkey()
261 keyiter(le32_to_cpu(k[4]), r4, r3, r1, 4, 4); in __serpent_setkey()
263 keyiter(le32_to_cpu(k[6]), r1, r0, r3, 6, 6); in __serpent_setkey()
266 keyiter(k[0], r3, r2, r0, 8, 8); in __serpent_setkey()
267 keyiter(k[1], r4, r3, r1, 9, 9); in __serpent_setkey()
269 keyiter(k[3], r1, r0, r3, 11, 11); in __serpent_setkey()
271 keyiter(k[5], r3, r2, r0, 13, 13); in __serpent_setkey()
272 keyiter(k[6], r4, r3, r1, 14, 14); in __serpent_setkey()
274 keyiter(k[8], r1, r0, r3, 16, 16); in __serpent_setkey()
276 keyiter(k[10], r3, r2, r0, 18, 18); in __serpent_setkey()
277 keyiter(k[11], r4, r3, r1, 19, 19); in __serpent_setkey()
279 keyiter(k[13], r1, r0, r3, 21, 21); in __serpent_setkey()
281 keyiter(k[15], r3, r2, r0, 23, 23); in __serpent_setkey()
282 keyiter(k[16], r4, r3, r1, 24, 24); in __serpent_setkey()
284 keyiter(k[18], r1, r0, r3, 26, 26); in __serpent_setkey()
286 keyiter(k[20], r3, r2, r0, 28, 28); in __serpent_setkey()
287 keyiter(k[21], r4, r3, r1, 29, 29); in __serpent_setkey()
289 keyiter(k[23], r1, r0, r3, 31, 31); in __serpent_setkey()
294 keyiter(k[-25], r3, r2, r0, 33, -17); in __serpent_setkey()
295 keyiter(k[-24], r4, r3, r1, 34, -16); in __serpent_setkey()
297 keyiter(k[-22], r1, r0, r3, 36, -14); in __serpent_setkey()
299 keyiter(k[-20], r3, r2, r0, 38, -12); in __serpent_setkey()
300 keyiter(k[-19], r4, r3, r1, 39, -11); in __serpent_setkey()
302 keyiter(k[-17], r1, r0, r3, 41, -9); in __serpent_setkey()
304 keyiter(k[-15], r3, r2, r0, 43, -7); in __serpent_setkey()
305 keyiter(k[-14], r4, r3, r1, 44, -6); in __serpent_setkey()
307 keyiter(k[-12], r1, r0, r3, 46, -4); in __serpent_setkey()
309 keyiter(k[-10], r3, r2, r0, 48, -2); in __serpent_setkey()
310 keyiter(k[-9], r4, r3, r1, 49, -1); in __serpent_setkey()
312 keyiter(k[-7], r1, r0, r3, 51, 1); in __serpent_setkey()
314 keyiter(k[-5], r3, r2, r0, 53, 3); in __serpent_setkey()
315 keyiter(k[-4], r4, r3, r1, 54, 4); in __serpent_setkey()
317 keyiter(k[-2], r1, r0, r3, 56, 6); in __serpent_setkey()
319 keyiter(k[0], r3, r2, r0, 58, 8); in __serpent_setkey()
320 keyiter(k[1], r4, r3, r1, 59, 9); in __serpent_setkey()
322 keyiter(k[3], r1, r0, r3, 61, 11); in __serpent_setkey()
324 keyiter(k[5], r3, r2, r0, 63, 13); in __serpent_setkey()
325 keyiter(k[6], r4, r3, r1, 64, 14); in __serpent_setkey()
327 keyiter(k[8], r1, r0, r3, 66, 16); in __serpent_setkey()
329 keyiter(k[10], r3, r2, r0, 68, 18); in __serpent_setkey()
330 keyiter(k[11], r4, r3, r1, 69, 19); in __serpent_setkey()
332 keyiter(k[13], r1, r0, r3, 71, 21); in __serpent_setkey()
334 keyiter(k[15], r3, r2, r0, 73, 23); in __serpent_setkey()
335 keyiter(k[16], r4, r3, r1, 74, 24); in __serpent_setkey()
337 keyiter(k[18], r1, r0, r3, 76, 26); in __serpent_setkey()
339 keyiter(k[20], r3, r2, r0, 78, 28); in __serpent_setkey()
340 keyiter(k[21], r4, r3, r1, 79, 29); in __serpent_setkey()
342 keyiter(k[23], r1, r0, r3, 81, 31); in __serpent_setkey()
347 keyiter(k[-25], r3, r2, r0, 83, -17); in __serpent_setkey()
348 keyiter(k[-24], r4, r3, r1, 84, -16); in __serpent_setkey()
350 keyiter(k[-22], r1, r0, r3, 86, -14); in __serpent_setkey()
352 keyiter(k[-20], r3, r2, r0, 88, -12); in __serpent_setkey()
353 keyiter(k[-19], r4, r3, r1, 89, -11); in __serpent_setkey()
355 keyiter(k[-17], r1, r0, r3, 91, -9); in __serpent_setkey()
357 keyiter(k[-15], r3, r2, r0, 93, -7); in __serpent_setkey()
358 keyiter(k[-14], r4, r3, r1, 94, -6); in __serpent_setkey()
360 keyiter(k[-12], r1, r0, r3, 96, -4); in __serpent_setkey()
362 keyiter(k[-10], r3, r2, r0, 98, -2); in __serpent_setkey()
363 keyiter(k[-9], r4, r3, r1, 99, -1); in __serpent_setkey()
365 keyiter(k[-7], r1, r0, r3, 101, 1); in __serpent_setkey()
367 keyiter(k[-5], r3, r2, r0, 103, 3); in __serpent_setkey()
368 keyiter(k[-4], r4, r3, r1, 104, 4); in __serpent_setkey()
370 keyiter(k[-2], r1, r0, r3, 106, 6); in __serpent_setkey()
372 keyiter(k[0], r3, r2, r0, 108, 8); in __serpent_setkey()
373 keyiter(k[1], r4, r3, r1, 109, 9); in __serpent_setkey()
375 keyiter(k[3], r1, r0, r3, 111, 11); in __serpent_setkey()
377 keyiter(k[5], r3, r2, r0, 113, 13); in __serpent_setkey()
378 keyiter(k[6], r4, r3, r1, 114, 14); in __serpent_setkey()
380 keyiter(k[8], r1, r0, r3, 116, 16); in __serpent_setkey()
382 keyiter(k[10], r3, r2, r0, 118, 18); in __serpent_setkey()
383 keyiter(k[11], r4, r3, r1, 119, 19); in __serpent_setkey()
385 keyiter(k[13], r1, r0, r3, 121, 21); in __serpent_setkey()
387 keyiter(k[15], r3, r2, r0, 123, 23); in __serpent_setkey()
388 keyiter(k[16], r4, r3, r1, 124, 24); in __serpent_setkey()
390 keyiter(k[18], r1, r0, r3, 126, 26); in __serpent_setkey()
392 keyiter(k[20], r3, r2, r0, 128, 28); in __serpent_setkey()
393 keyiter(k[21], r4, r3, r1, 129, 29); in __serpent_setkey()
395 keyiter(k[23], r1, r0, r3, 131, 31); in __serpent_setkey()
399 S3(r3, r4, r0, r1, r2); store_and_load_keys(r1, r2, r4, r3, 28, 24); in __serpent_setkey()
400 S4(r1, r2, r4, r3, r0); store_and_load_keys(r2, r4, r3, r0, 24, 20); in __serpent_setkey()
401 S5(r2, r4, r3, r0, r1); store_and_load_keys(r1, r2, r4, r0, 20, 16); in __serpent_setkey()
402 S6(r1, r2, r4, r0, r3); store_and_load_keys(r4, r3, r2, r0, 16, 12); in __serpent_setkey()
403 S7(r4, r3, r2, r0, r1); store_and_load_keys(r1, r2, r0, r4, 12, 8); in __serpent_setkey()
404 S0(r1, r2, r0, r4, r3); store_and_load_keys(r0, r2, r4, r1, 8, 4); in __serpent_setkey()
405 S1(r0, r2, r4, r1, r3); store_and_load_keys(r3, r4, r1, r0, 4, 0); in __serpent_setkey()
406 S2(r3, r4, r1, r0, r2); store_and_load_keys(r2, r4, r3, r0, 0, -4); in __serpent_setkey()
407 S3(r2, r4, r3, r0, r1); store_and_load_keys(r0, r1, r4, r2, -4, -8); in __serpent_setkey()
408 S4(r0, r1, r4, r2, r3); store_and_load_keys(r1, r4, r2, r3, -8, -12); in __serpent_setkey()
409 S5(r1, r4, r2, r3, r0); store_and_load_keys(r0, r1, r4, r3, -12, -16); in __serpent_setkey()
410 S6(r0, r1, r4, r3, r2); store_and_load_keys(r4, r2, r1, r3, -16, -20); in __serpent_setkey()
411 S7(r4, r2, r1, r3, r0); store_and_load_keys(r0, r1, r3, r4, -20, -24); in __serpent_setkey()
412 S0(r0, r1, r3, r4, r2); store_and_load_keys(r3, r1, r4, r0, -24, -28); in __serpent_setkey()
414 S1(r3, r1, r4, r0, r2); store_and_load_keys(r2, r4, r0, r3, 22, 18); in __serpent_setkey()
415 S2(r2, r4, r0, r3, r1); store_and_load_keys(r1, r4, r2, r3, 18, 14); in __serpent_setkey()
416 S3(r1, r4, r2, r3, r0); store_and_load_keys(r3, r0, r4, r1, 14, 10); in __serpent_setkey()
417 S4(r3, r0, r4, r1, r2); store_and_load_keys(r0, r4, r1, r2, 10, 6); in __serpent_setkey()
418 S5(r0, r4, r1, r2, r3); store_and_load_keys(r3, r0, r4, r2, 6, 2); in __serpent_setkey()
419 S6(r3, r0, r4, r2, r1); store_and_load_keys(r4, r1, r0, r2, 2, -2); in __serpent_setkey()
420 S7(r4, r1, r0, r2, r3); store_and_load_keys(r3, r0, r2, r4, -2, -6); in __serpent_setkey()
421 S0(r3, r0, r2, r4, r1); store_and_load_keys(r2, r0, r4, r3, -6, -10); in __serpent_setkey()
422 S1(r2, r0, r4, r3, r1); store_and_load_keys(r1, r4, r3, r2, -10, -14); in __serpent_setkey()
423 S2(r1, r4, r3, r2, r0); store_and_load_keys(r0, r4, r1, r2, -14, -18); in __serpent_setkey()
424 S3(r0, r4, r1, r2, r3); store_and_load_keys(r2, r3, r4, r0, -18, -22); in __serpent_setkey()
426 S4(r2, r3, r4, r0, r1); store_and_load_keys(r3, r4, r0, r1, 28, 24); in __serpent_setkey()
427 S5(r3, r4, r0, r1, r2); store_and_load_keys(r2, r3, r4, r1, 24, 20); in __serpent_setkey()
428 S6(r2, r3, r4, r1, r0); store_and_load_keys(r4, r0, r3, r1, 20, 16); in __serpent_setkey()
429 S7(r4, r0, r3, r1, r2); store_and_load_keys(r2, r3, r1, r4, 16, 12); in __serpent_setkey()
430 S0(r2, r3, r1, r4, r0); store_and_load_keys(r1, r3, r4, r2, 12, 8); in __serpent_setkey()
431 S1(r1, r3, r4, r2, r0); store_and_load_keys(r0, r4, r2, r1, 8, 4); in __serpent_setkey()
432 S2(r0, r4, r2, r1, r3); store_and_load_keys(r3, r4, r0, r1, 4, 0); in __serpent_setkey()
433 S3(r3, r4, r0, r1, r2); storekeys(r1, r2, r4, r3, 0); in __serpent_setkey()
450 u32 r0, r1, r2, r3, r4; in __serpent_encrypt() local
460 r3 = le32_to_cpu(s[3]); in __serpent_encrypt()
462 K(r0, r1, r2, r3, 0); in __serpent_encrypt()
463 S0(r0, r1, r2, r3, r4); LK(r2, r1, r3, r0, r4, 1); in __serpent_encrypt()
464 S1(r2, r1, r3, r0, r4); LK(r4, r3, r0, r2, r1, 2); in __serpent_encrypt()
465 S2(r4, r3, r0, r2, r1); LK(r1, r3, r4, r2, r0, 3); in __serpent_encrypt()
466 S3(r1, r3, r4, r2, r0); LK(r2, r0, r3, r1, r4, 4); in __serpent_encrypt()
467 S4(r2, r0, r3, r1, r4); LK(r0, r3, r1, r4, r2, 5); in __serpent_encrypt()
468 S5(r0, r3, r1, r4, r2); LK(r2, r0, r3, r4, r1, 6); in __serpent_encrypt()
469 S6(r2, r0, r3, r4, r1); LK(r3, r1, r0, r4, r2, 7); in __serpent_encrypt()
470 S7(r3, r1, r0, r4, r2); LK(r2, r0, r4, r3, r1, 8); in __serpent_encrypt()
471 S0(r2, r0, r4, r3, r1); LK(r4, r0, r3, r2, r1, 9); in __serpent_encrypt()
472 S1(r4, r0, r3, r2, r1); LK(r1, r3, r2, r4, r0, 10); in __serpent_encrypt()
473 S2(r1, r3, r2, r4, r0); LK(r0, r3, r1, r4, r2, 11); in __serpent_encrypt()
474 S3(r0, r3, r1, r4, r2); LK(r4, r2, r3, r0, r1, 12); in __serpent_encrypt()
475 S4(r4, r2, r3, r0, r1); LK(r2, r3, r0, r1, r4, 13); in __serpent_encrypt()
476 S5(r2, r3, r0, r1, r4); LK(r4, r2, r3, r1, r0, 14); in __serpent_encrypt()
477 S6(r4, r2, r3, r1, r0); LK(r3, r0, r2, r1, r4, 15); in __serpent_encrypt()
478 S7(r3, r0, r2, r1, r4); LK(r4, r2, r1, r3, r0, 16); in __serpent_encrypt()
479 S0(r4, r2, r1, r3, r0); LK(r1, r2, r3, r4, r0, 17); in __serpent_encrypt()
480 S1(r1, r2, r3, r4, r0); LK(r0, r3, r4, r1, r2, 18); in __serpent_encrypt()
481 S2(r0, r3, r4, r1, r2); LK(r2, r3, r0, r1, r4, 19); in __serpent_encrypt()
482 S3(r2, r3, r0, r1, r4); LK(r1, r4, r3, r2, r0, 20); in __serpent_encrypt()
483 S4(r1, r4, r3, r2, r0); LK(r4, r3, r2, r0, r1, 21); in __serpent_encrypt()
484 S5(r4, r3, r2, r0, r1); LK(r1, r4, r3, r0, r2, 22); in __serpent_encrypt()
485 S6(r1, r4, r3, r0, r2); LK(r3, r2, r4, r0, r1, 23); in __serpent_encrypt()
486 S7(r3, r2, r4, r0, r1); LK(r1, r4, r0, r3, r2, 24); in __serpent_encrypt()
487 S0(r1, r4, r0, r3, r2); LK(r0, r4, r3, r1, r2, 25); in __serpent_encrypt()
488 S1(r0, r4, r3, r1, r2); LK(r2, r3, r1, r0, r4, 26); in __serpent_encrypt()
489 S2(r2, r3, r1, r0, r4); LK(r4, r3, r2, r0, r1, 27); in __serpent_encrypt()
490 S3(r4, r3, r2, r0, r1); LK(r0, r1, r3, r4, r2, 28); in __serpent_encrypt()
491 S4(r0, r1, r3, r4, r2); LK(r1, r3, r4, r2, r0, 29); in __serpent_encrypt()
492 S5(r1, r3, r4, r2, r0); LK(r0, r1, r3, r2, r4, 30); in __serpent_encrypt()
493 S6(r0, r1, r3, r2, r4); LK(r3, r4, r1, r2, r0, 31); in __serpent_encrypt()
494 S7(r3, r4, r1, r2, r0); K(r0, r1, r2, r3, 32); in __serpent_encrypt()
499 d[3] = cpu_to_le32(r3); in __serpent_encrypt()
515 u32 r0, r1, r2, r3, r4; in __serpent_decrypt() local
520 r3 = le32_to_cpu(s[3]); in __serpent_decrypt()
522 K(r0, r1, r2, r3, 32); in __serpent_decrypt()
523 SI7(r0, r1, r2, r3, r4); KL(r1, r3, r0, r4, r2, 31); in __serpent_decrypt()
524 SI6(r1, r3, r0, r4, r2); KL(r0, r2, r4, r1, r3, 30); in __serpent_decrypt()
525 SI5(r0, r2, r4, r1, r3); KL(r2, r3, r0, r4, r1, 29); in __serpent_decrypt()
526 SI4(r2, r3, r0, r4, r1); KL(r2, r0, r1, r4, r3, 28); in __serpent_decrypt()
527 SI3(r2, r0, r1, r4, r3); KL(r1, r2, r3, r4, r0, 27); in __serpent_decrypt()
528 SI2(r1, r2, r3, r4, r0); KL(r2, r0, r4, r3, r1, 26); in __serpent_decrypt()
529 SI1(r2, r0, r4, r3, r1); KL(r1, r0, r4, r3, r2, 25); in __serpent_decrypt()
530 SI0(r1, r0, r4, r3, r2); KL(r4, r2, r0, r1, r3, 24); in __serpent_decrypt()
531 SI7(r4, r2, r0, r1, r3); KL(r2, r1, r4, r3, r0, 23); in __serpent_decrypt()
532 SI6(r2, r1, r4, r3, r0); KL(r4, r0, r3, r2, r1, 22); in __serpent_decrypt()
533 SI5(r4, r0, r3, r2, r1); KL(r0, r1, r4, r3, r2, 21); in __serpent_decrypt()
534 SI4(r0, r1, r4, r3, r2); KL(r0, r4, r2, r3, r1, 20); in __serpent_decrypt()
535 SI3(r0, r4, r2, r3, r1); KL(r2, r0, r1, r3, r4, 19); in __serpent_decrypt()
536 SI2(r2, r0, r1, r3, r4); KL(r0, r4, r3, r1, r2, 18); in __serpent_decrypt()
537 SI1(r0, r4, r3, r1, r2); KL(r2, r4, r3, r1, r0, 17); in __serpent_decrypt()
538 SI0(r2, r4, r3, r1, r0); KL(r3, r0, r4, r2, r1, 16); in __serpent_decrypt()
539 SI7(r3, r0, r4, r2, r1); KL(r0, r2, r3, r1, r4, 15); in __serpent_decrypt()
540 SI6(r0, r2, r3, r1, r4); KL(r3, r4, r1, r0, r2, 14); in __serpent_decrypt()
541 SI5(r3, r4, r1, r0, r2); KL(r4, r2, r3, r1, r0, 13); in __serpent_decrypt()
542 SI4(r4, r2, r3, r1, r0); KL(r4, r3, r0, r1, r2, 12); in __serpent_decrypt()
543 SI3(r4, r3, r0, r1, r2); KL(r0, r4, r2, r1, r3, 11); in __serpent_decrypt()
544 SI2(r0, r4, r2, r1, r3); KL(r4, r3, r1, r2, r0, 10); in __serpent_decrypt()
545 SI1(r4, r3, r1, r2, r0); KL(r0, r3, r1, r2, r4, 9); in __serpent_decrypt()
546 SI0(r0, r3, r1, r2, r4); KL(r1, r4, r3, r0, r2, 8); in __serpent_decrypt()
547 SI7(r1, r4, r3, r0, r2); KL(r4, r0, r1, r2, r3, 7); in __serpent_decrypt()
548 SI6(r4, r0, r1, r2, r3); KL(r1, r3, r2, r4, r0, 6); in __serpent_decrypt()
549 SI5(r1, r3, r2, r4, r0); KL(r3, r0, r1, r2, r4, 5); in __serpent_decrypt()
550 SI4(r3, r0, r1, r2, r4); KL(r3, r1, r4, r2, r0, 4); in __serpent_decrypt()
551 SI3(r3, r1, r4, r2, r0); KL(r4, r3, r0, r2, r1, 3); in __serpent_decrypt()
552 SI2(r4, r3, r0, r2, r1); KL(r3, r1, r2, r0, r4, 2); in __serpent_decrypt()
553 SI1(r3, r1, r2, r0, r4); KL(r4, r1, r2, r0, r3, 1); in __serpent_decrypt()
554 SI0(r4, r1, r2, r0, r3); K(r2, r3, r1, r4, 0); in __serpent_decrypt()
557 d[1] = cpu_to_le32(r3); in __serpent_decrypt()