• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/crypto/

Lines Matching defs:state

485 	/* * map cipher key to initial key state (mu): */
580 u32 state[4];
584 * map plaintext block to cipher state (mu)
588 state[i] = be32_to_cpu(src[i]) ^ roundKey[0][i];
596 T0[(state[0] >> 24) ] ^
597 T1[(state[1] >> 24) ] ^
598 T2[(state[2] >> 24) ] ^
599 T3[(state[3] >> 24) ] ^
602 T0[(state[0] >> 16) & 0xff] ^
603 T1[(state[1] >> 16) & 0xff] ^
604 T2[(state[2] >> 16) & 0xff] ^
605 T3[(state[3] >> 16) & 0xff] ^
608 T0[(state[0] >> 8) & 0xff] ^
609 T1[(state[1] >> 8) & 0xff] ^
610 T2[(state[2] >> 8) & 0xff] ^
611 T3[(state[3] >> 8) & 0xff] ^
614 T0[(state[0] ) & 0xff] ^
615 T1[(state[1] ) & 0xff] ^
616 T2[(state[2] ) & 0xff] ^
617 T3[(state[3] ) & 0xff] ^
619 state[0] = inter[0];
620 state[1] = inter[1];
621 state[2] = inter[2];
622 state[3] = inter[3];
630 (T0[(state[0] >> 24) ] & 0xff000000U) ^
631 (T1[(state[1] >> 24) ] & 0x00ff0000U) ^
632 (T2[(state[2] >> 24) ] & 0x0000ff00U) ^
633 (T3[(state[3] >> 24) ] & 0x000000ffU) ^
636 (T0[(state[0] >> 16) & 0xff] & 0xff000000U) ^
637 (T1[(state[1] >> 16) & 0xff] & 0x00ff0000U) ^
638 (T2[(state[2] >> 16) & 0xff] & 0x0000ff00U) ^
639 (T3[(state[3] >> 16) & 0xff] & 0x000000ffU) ^
642 (T0[(state[0] >> 8) & 0xff] & 0xff000000U) ^
643 (T1[(state[1] >> 8) & 0xff] & 0x00ff0000U) ^
644 (T2[(state[2] >> 8) & 0xff] & 0x0000ff00U) ^
645 (T3[(state[3] >> 8) & 0xff] & 0x000000ffU) ^
648 (T0[(state[0] ) & 0xff] & 0xff000000U) ^
649 (T1[(state[1] ) & 0xff] & 0x00ff0000U) ^
650 (T2[(state[2] ) & 0xff] & 0x0000ff00U) ^
651 (T3[(state[3] ) & 0xff] & 0x000000ffU) ^
655 * map cipher state to ciphertext block (mu^{-1}):