Lines Matching defs:state
483 /* * map cipher key to initial key state (mu): */
578 u32 state[4];
582 * map plaintext block to cipher state (mu)
586 state[i] = be32_to_cpu(src[i]) ^ roundKey[0][i];
594 T0[(state[0] >> 24) ] ^
595 T1[(state[1] >> 24) ] ^
596 T2[(state[2] >> 24) ] ^
597 T3[(state[3] >> 24) ] ^
600 T0[(state[0] >> 16) & 0xff] ^
601 T1[(state[1] >> 16) & 0xff] ^
602 T2[(state[2] >> 16) & 0xff] ^
603 T3[(state[3] >> 16) & 0xff] ^
606 T0[(state[0] >> 8) & 0xff] ^
607 T1[(state[1] >> 8) & 0xff] ^
608 T2[(state[2] >> 8) & 0xff] ^
609 T3[(state[3] >> 8) & 0xff] ^
612 T0[(state[0] ) & 0xff] ^
613 T1[(state[1] ) & 0xff] ^
614 T2[(state[2] ) & 0xff] ^
615 T3[(state[3] ) & 0xff] ^
617 state[0] = inter[0];
618 state[1] = inter[1];
619 state[2] = inter[2];
620 state[3] = inter[3];
628 (T0[(state[0] >> 24) ] & 0xff000000U) ^
629 (T1[(state[1] >> 24) ] & 0x00ff0000U) ^
630 (T2[(state[2] >> 24) ] & 0x0000ff00U) ^
631 (T3[(state[3] >> 24) ] & 0x000000ffU) ^
634 (T0[(state[0] >> 16) & 0xff] & 0xff000000U) ^
635 (T1[(state[1] >> 16) & 0xff] & 0x00ff0000U) ^
636 (T2[(state[2] >> 16) & 0xff] & 0x0000ff00U) ^
637 (T3[(state[3] >> 16) & 0xff] & 0x000000ffU) ^
640 (T0[(state[0] >> 8) & 0xff] & 0xff000000U) ^
641 (T1[(state[1] >> 8) & 0xff] & 0x00ff0000U) ^
642 (T2[(state[2] >> 8) & 0xff] & 0x0000ff00U) ^
643 (T3[(state[3] >> 8) & 0xff] & 0x000000ffU) ^
646 (T0[(state[0] ) & 0xff] & 0xff000000U) ^
647 (T1[(state[1] ) & 0xff] & 0x00ff0000U) ^
648 (T2[(state[2] ) & 0xff] & 0x0000ff00U) ^
649 (T3[(state[3] ) & 0xff] & 0x000000ffU) ^
653 * map cipher state to ciphertext block (mu^{-1}):