Lines Matching refs:K

182 #  define C0(K,i)     (Cx.q[K.c[(i)*8+0]])  argument
183 # define C1(K,i) ROTATE(Cx.q[K.c[(i)*8+1]],8) argument
184 # define C2(K,i) ROTATE(Cx.q[K.c[(i)*8+2]],16) argument
185 # define C3(K,i) ROTATE(Cx.q[K.c[(i)*8+3]],24) argument
186 # define C4(K,i) ROTATE(Cx.q[K.c[(i)*8+4]],32) argument
187 # define C5(K,i) ROTATE(Cx.q[K.c[(i)*8+5]],40) argument
188 # define C6(K,i) ROTATE(Cx.q[K.c[(i)*8+6]],48) argument
189 # define C7(K,i) ROTATE(Cx.q[K.c[(i)*8+7]],56) argument
200 # define C0(K,i) (Cx.q[0+8*K.c[(i)*8+0]]) argument
201 # define C1(K,i) (Cx.q[1+8*K.c[(i)*8+1]]) argument
202 # define C2(K,i) (Cx.q[2+8*K.c[(i)*8+2]]) argument
203 # define C3(K,i) (Cx.q[3+8*K.c[(i)*8+3]]) argument
204 # define C4(K,i) (Cx.q[4+8*K.c[(i)*8+4]]) argument
205 # define C5(K,i) (Cx.q[5+8*K.c[(i)*8+5]]) argument
206 # define C6(K,i) (Cx.q[6+8*K.c[(i)*8+6]]) argument
207 # define C7(K,i) (Cx.q[7+8*K.c[(i)*8+7]]) argument
213 # define C0(K,i) (((u64*)(Cx.c+0))[2*K.c[(i)*8+0]]) argument
214 # define C1(K,i) (((u64_a1*)(Cx.c+7))[2*K.c[(i)*8+1]]) argument
215 # define C2(K,i) (((u64_a1*)(Cx.c+6))[2*K.c[(i)*8+2]]) argument
216 # define C3(K,i) (((u64_a1*)(Cx.c+5))[2*K.c[(i)*8+3]]) argument
217 # define C4(K,i) (((u64_a1*)(Cx.c+4))[2*K.c[(i)*8+4]]) argument
218 # define C5(K,i) (((u64_a1*)(Cx.c+3))[2*K.c[(i)*8+5]]) argument
219 # define C6(K,i) (((u64_a1*)(Cx.c+2))[2*K.c[(i)*8+6]]) argument
220 # define C7(K,i) (((u64_a1*)(Cx.c+1))[2*K.c[(i)*8+7]]) argument
506 } S, K, *H = (void *)ctx->H.q; in whirlpool_block() local
517 S.c[i] = (K.c[i] = H->c[i]) ^ p[i]; in whirlpool_block()
521 L[i] ^= C0(K, i) ^ C1(K, (i - 1) & 7) ^ in whirlpool_block()
522 C2(K, (i - 2) & 7) ^ C3(K, (i - 3) & 7) ^ in whirlpool_block()
523 C4(K, (i - 4) & 7) ^ C5(K, (i - 5) & 7) ^ in whirlpool_block()
524 C6(K, (i - 6) & 7) ^ C7(K, (i - 7) & 7); in whirlpool_block()
526 memcpy(K.q, L, 64); in whirlpool_block()
543 S.q[0] ^= (K.q[0] = H->q[0]); in whirlpool_block()
544 S.q[1] ^= (K.q[1] = H->q[1]); in whirlpool_block()
545 S.q[2] ^= (K.q[2] = H->q[2]); in whirlpool_block()
546 S.q[3] ^= (K.q[3] = H->q[3]); in whirlpool_block()
547 S.q[4] ^= (K.q[4] = H->q[4]); in whirlpool_block()
548 S.q[5] ^= (K.q[5] = H->q[5]); in whirlpool_block()
549 S.q[6] ^= (K.q[6] = H->q[6]); in whirlpool_block()
550 S.q[7] ^= (K.q[7] = H->q[7]); in whirlpool_block()
555 S.q[0] = (K.q[0] = H->q[0]) ^ pa[0]; in whirlpool_block()
556 S.q[1] = (K.q[1] = H->q[1]) ^ pa[1]; in whirlpool_block()
557 S.q[2] = (K.q[2] = H->q[2]) ^ pa[2]; in whirlpool_block()
558 S.q[3] = (K.q[3] = H->q[3]) ^ pa[3]; in whirlpool_block()
559 S.q[4] = (K.q[4] = H->q[4]) ^ pa[4]; in whirlpool_block()
560 S.q[5] = (K.q[5] = H->q[5]) ^ pa[5]; in whirlpool_block()
561 S.q[6] = (K.q[6] = H->q[6]) ^ pa[6]; in whirlpool_block()
562 S.q[7] = (K.q[7] = H->q[7]) ^ pa[7]; in whirlpool_block()
567 L0 = C0(K, 0) ^ C1(K, 7) ^ C2(K, 6) ^ C3(K, 5) ^ in whirlpool_block()
568 C4(K, 4) ^ C5(K, 3) ^ C6(K, 2) ^ C7(K, 1) ^ RC[r]; in whirlpool_block()
569 L1 = C0(K, 1) ^ C1(K, 0) ^ C2(K, 7) ^ C3(K, 6) ^ in whirlpool_block()
570 C4(K, 5) ^ C5(K, 4) ^ C6(K, 3) ^ C7(K, 2); in whirlpool_block()
571 L2 = C0(K, 2) ^ C1(K, 1) ^ C2(K, 0) ^ C3(K, 7) ^ in whirlpool_block()
572 C4(K, 6) ^ C5(K, 5) ^ C6(K, 4) ^ C7(K, 3); in whirlpool_block()
573 L3 = C0(K, 3) ^ C1(K, 2) ^ C2(K, 1) ^ C3(K, 0) ^ in whirlpool_block()
574 C4(K, 7) ^ C5(K, 6) ^ C6(K, 5) ^ C7(K, 4); in whirlpool_block()
575 L4 = C0(K, 4) ^ C1(K, 3) ^ C2(K, 2) ^ C3(K, 1) ^ in whirlpool_block()
576 C4(K, 0) ^ C5(K, 7) ^ C6(K, 6) ^ C7(K, 5); in whirlpool_block()
577 L5 = C0(K, 5) ^ C1(K, 4) ^ C2(K, 3) ^ C3(K, 2) ^ in whirlpool_block()
578 C4(K, 1) ^ C5(K, 0) ^ C6(K, 7) ^ C7(K, 6); in whirlpool_block()
579 L6 = C0(K, 6) ^ C1(K, 5) ^ C2(K, 4) ^ C3(K, 3) ^ in whirlpool_block()
580 C4(K, 2) ^ C5(K, 1) ^ C6(K, 0) ^ C7(K, 7); in whirlpool_block()
581 L7 = C0(K, 7) ^ C1(K, 6) ^ C2(K, 5) ^ C3(K, 4) ^ in whirlpool_block()
582 C4(K, 3) ^ C5(K, 2) ^ C6(K, 1) ^ C7(K, 0); in whirlpool_block()
584 K.q[0] = L0; in whirlpool_block()
585 K.q[1] = L1; in whirlpool_block()
586 K.q[2] = L2; in whirlpool_block()
587 K.q[3] = L3; in whirlpool_block()
588 K.q[4] = L4; in whirlpool_block()
589 K.q[5] = L5; in whirlpool_block()
590 K.q[6] = L6; in whirlpool_block()
591 K.q[7] = L7; in whirlpool_block()
619 L0 = C0(K, 0); in whirlpool_block()
620 L1 = C1(K, 0); in whirlpool_block()
621 L2 = C2(K, 0); in whirlpool_block()
622 L3 = C3(K, 0); in whirlpool_block()
623 L4 = C4(K, 0); in whirlpool_block()
624 L5 = C5(K, 0); in whirlpool_block()
625 L6 = C6(K, 0); in whirlpool_block()
626 L7 = C7(K, 0); in whirlpool_block()
629 L1 ^= C0(K, 1); in whirlpool_block()
630 L2 ^= C1(K, 1); in whirlpool_block()
631 L3 ^= C2(K, 1); in whirlpool_block()
632 L4 ^= C3(K, 1); in whirlpool_block()
633 L5 ^= C4(K, 1); in whirlpool_block()
634 L6 ^= C5(K, 1); in whirlpool_block()
635 L7 ^= C6(K, 1); in whirlpool_block()
636 L0 ^= C7(K, 1); in whirlpool_block()
638 L2 ^= C0(K, 2); in whirlpool_block()
639 L3 ^= C1(K, 2); in whirlpool_block()
640 L4 ^= C2(K, 2); in whirlpool_block()
641 L5 ^= C3(K, 2); in whirlpool_block()
642 L6 ^= C4(K, 2); in whirlpool_block()
643 L7 ^= C5(K, 2); in whirlpool_block()
644 L0 ^= C6(K, 2); in whirlpool_block()
645 L1 ^= C7(K, 2); in whirlpool_block()
647 L3 ^= C0(K, 3); in whirlpool_block()
648 L4 ^= C1(K, 3); in whirlpool_block()
649 L5 ^= C2(K, 3); in whirlpool_block()
650 L6 ^= C3(K, 3); in whirlpool_block()
651 L7 ^= C4(K, 3); in whirlpool_block()
652 L0 ^= C5(K, 3); in whirlpool_block()
653 L1 ^= C6(K, 3); in whirlpool_block()
654 L2 ^= C7(K, 3); in whirlpool_block()
656 L4 ^= C0(K, 4); in whirlpool_block()
657 L5 ^= C1(K, 4); in whirlpool_block()
658 L6 ^= C2(K, 4); in whirlpool_block()
659 L7 ^= C3(K, 4); in whirlpool_block()
660 L0 ^= C4(K, 4); in whirlpool_block()
661 L1 ^= C5(K, 4); in whirlpool_block()
662 L2 ^= C6(K, 4); in whirlpool_block()
663 L3 ^= C7(K, 4); in whirlpool_block()
665 L5 ^= C0(K, 5); in whirlpool_block()
666 L6 ^= C1(K, 5); in whirlpool_block()
667 L7 ^= C2(K, 5); in whirlpool_block()
668 L0 ^= C3(K, 5); in whirlpool_block()
669 L1 ^= C4(K, 5); in whirlpool_block()
670 L2 ^= C5(K, 5); in whirlpool_block()
671 L3 ^= C6(K, 5); in whirlpool_block()
672 L4 ^= C7(K, 5); in whirlpool_block()
674 L6 ^= C0(K, 6); in whirlpool_block()
675 L7 ^= C1(K, 6); in whirlpool_block()
676 L0 ^= C2(K, 6); in whirlpool_block()
677 L1 ^= C3(K, 6); in whirlpool_block()
678 L2 ^= C4(K, 6); in whirlpool_block()
679 L3 ^= C5(K, 6); in whirlpool_block()
680 L4 ^= C6(K, 6); in whirlpool_block()
681 L5 ^= C7(K, 6); in whirlpool_block()
683 L7 ^= C0(K, 7); in whirlpool_block()
684 L0 ^= C1(K, 7); in whirlpool_block()
685 L1 ^= C2(K, 7); in whirlpool_block()
686 L2 ^= C3(K, 7); in whirlpool_block()
687 L3 ^= C4(K, 7); in whirlpool_block()
688 L4 ^= C5(K, 7); in whirlpool_block()
689 L5 ^= C6(K, 7); in whirlpool_block()
690 L6 ^= C7(K, 7); in whirlpool_block()
692 K.q[0] = L0; in whirlpool_block()
693 K.q[1] = L1; in whirlpool_block()
694 K.q[2] = L2; in whirlpool_block()
695 K.q[3] = L3; in whirlpool_block()
696 K.q[4] = L4; in whirlpool_block()
697 K.q[5] = L5; in whirlpool_block()
698 K.q[6] = L6; in whirlpool_block()
699 K.q[7] = L7; in whirlpool_block()