Lines Matching refs:rk

476     u32 *rk;  in AES_set_encrypt_key()  local
485 rk = key->rd_key; in AES_set_encrypt_key()
494 rk[0] = GETU32(userKey ); in AES_set_encrypt_key()
495 rk[1] = GETU32(userKey + 4); in AES_set_encrypt_key()
496 rk[2] = GETU32(userKey + 8); in AES_set_encrypt_key()
497 rk[3] = GETU32(userKey + 12); in AES_set_encrypt_key()
500 temp = rk[3]; in AES_set_encrypt_key()
501 rk[4] = rk[0] ^ in AES_set_encrypt_key()
507 rk[5] = rk[1] ^ rk[4]; in AES_set_encrypt_key()
508 rk[6] = rk[2] ^ rk[5]; in AES_set_encrypt_key()
509 rk[7] = rk[3] ^ rk[6]; in AES_set_encrypt_key()
513 rk += 4; in AES_set_encrypt_key()
516 rk[4] = GETU32(userKey + 16); in AES_set_encrypt_key()
517 rk[5] = GETU32(userKey + 20); in AES_set_encrypt_key()
520 temp = rk[ 5]; in AES_set_encrypt_key()
521 rk[ 6] = rk[ 0] ^ in AES_set_encrypt_key()
527 rk[ 7] = rk[ 1] ^ rk[ 6]; in AES_set_encrypt_key()
528 rk[ 8] = rk[ 2] ^ rk[ 7]; in AES_set_encrypt_key()
529 rk[ 9] = rk[ 3] ^ rk[ 8]; in AES_set_encrypt_key()
533 rk[10] = rk[ 4] ^ rk[ 9]; in AES_set_encrypt_key()
534 rk[11] = rk[ 5] ^ rk[10]; in AES_set_encrypt_key()
535 rk += 6; in AES_set_encrypt_key()
538 rk[6] = GETU32(userKey + 24); in AES_set_encrypt_key()
539 rk[7] = GETU32(userKey + 28); in AES_set_encrypt_key()
542 temp = rk[ 7]; in AES_set_encrypt_key()
543 rk[ 8] = rk[ 0] ^ in AES_set_encrypt_key()
549 rk[ 9] = rk[ 1] ^ rk[ 8]; in AES_set_encrypt_key()
550 rk[10] = rk[ 2] ^ rk[ 9]; in AES_set_encrypt_key()
551 rk[11] = rk[ 3] ^ rk[10]; in AES_set_encrypt_key()
555 temp = rk[11]; in AES_set_encrypt_key()
556 rk[12] = rk[ 4] ^ in AES_set_encrypt_key()
561 rk[13] = rk[ 5] ^ rk[12]; in AES_set_encrypt_key()
562 rk[14] = rk[ 6] ^ rk[13]; in AES_set_encrypt_key()
563 rk[15] = rk[ 7] ^ rk[14]; in AES_set_encrypt_key()
565 rk += 8; in AES_set_encrypt_key()
578 u32 *rk; in AES_set_decrypt_key() local
587 rk = key->rd_key; in AES_set_decrypt_key()
591 temp = rk[i ]; rk[i ] = rk[j ]; rk[j ] = temp; in AES_set_decrypt_key()
592 temp = rk[i + 1]; rk[i + 1] = rk[j + 1]; rk[j + 1] = temp; in AES_set_decrypt_key()
593 temp = rk[i + 2]; rk[i + 2] = rk[j + 2]; rk[j + 2] = temp; in AES_set_decrypt_key()
594 temp = rk[i + 3]; rk[i + 3] = rk[j + 3]; rk[j + 3] = temp; in AES_set_decrypt_key()
598 rk += 4; in AES_set_decrypt_key()
603 tp1 = rk[j]; in AES_set_decrypt_key()
618 rk[j] = tpe ^ ROTATE(tpd,16) ^ in AES_set_decrypt_key()
621 rk[j] = tpe ^ (tpd >> 16) ^ (tpd << 16) ^ in AES_set_decrypt_key()
627 rk[0] = in AES_set_decrypt_key()
628 Td0[Te2[(rk[0] ) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
629 Td1[Te2[(rk[0] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
630 Td2[Te2[(rk[0] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
631 Td3[Te2[(rk[0] >> 24) ] & 0xff]; in AES_set_decrypt_key()
632 rk[1] = in AES_set_decrypt_key()
633 Td0[Te2[(rk[1] ) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
634 Td1[Te2[(rk[1] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
635 Td2[Te2[(rk[1] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
636 Td3[Te2[(rk[1] >> 24) ] & 0xff]; in AES_set_decrypt_key()
637 rk[2] = in AES_set_decrypt_key()
638 Td0[Te2[(rk[2] ) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
639 Td1[Te2[(rk[2] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
640 Td2[Te2[(rk[2] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
641 Td3[Te2[(rk[2] >> 24) ] & 0xff]; in AES_set_decrypt_key()
642 rk[3] = in AES_set_decrypt_key()
643 Td0[Te2[(rk[3] ) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
644 Td1[Te2[(rk[3] >> 8) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
645 Td2[Te2[(rk[3] >> 16) & 0xff] & 0xff] ^ in AES_set_decrypt_key()
646 Td3[Te2[(rk[3] >> 24) ] & 0xff]; in AES_set_decrypt_key()
660 const u32 *rk; in AES_encrypt() local
665 rk = key->rd_key; in AES_encrypt()
671 s0 = GETU32(in ) ^ rk[0]; in AES_encrypt()
672 s1 = GETU32(in + 4) ^ rk[1]; in AES_encrypt()
673 s2 = GETU32(in + 8) ^ rk[2]; in AES_encrypt()
674 s3 = GETU32(in + 12) ^ rk[3]; in AES_encrypt()
713 t[i] ^= rk[4+i]; in AES_encrypt()
721 rk[4]; in AES_encrypt()
726 rk[5]; in AES_encrypt()
731 rk[6]; in AES_encrypt()
736 rk[7]; in AES_encrypt()
743 for (rk+=8,r=key->rounds-2; r>0; rk+=4,r--) { in AES_encrypt()
780 t[i] ^= rk[i]; in AES_encrypt()
788 rk[0]; in AES_encrypt()
793 rk[1]; in AES_encrypt()
798 rk[2]; in AES_encrypt()
803 rk[3]; in AES_encrypt()
819 rk[0]; in AES_encrypt()
825 rk[1]; in AES_encrypt()
831 rk[2]; in AES_encrypt()
837 rk[3]; in AES_encrypt()
844 rk[0]; in AES_encrypt()
850 rk[1]; in AES_encrypt()
856 rk[2]; in AES_encrypt()
862 rk[3]; in AES_encrypt()
874 const u32 *rk; in AES_decrypt() local
879 rk = key->rd_key; in AES_decrypt()
885 s0 = GETU32(in ) ^ rk[0]; in AES_decrypt()
886 s1 = GETU32(in + 4) ^ rk[1]; in AES_decrypt()
887 s2 = GETU32(in + 8) ^ rk[2]; in AES_decrypt()
888 s3 = GETU32(in + 12) ^ rk[3]; in AES_decrypt()
938 t[i] ^= rk[4+i]; in AES_decrypt()
946 rk[4]; in AES_decrypt()
951 rk[5]; in AES_decrypt()
956 rk[6]; in AES_decrypt()
961 rk[7]; in AES_decrypt()
968 for (rk+=8,r=key->rounds-2; r>0; rk+=4,r--) { in AES_decrypt()
1015 t[i] ^= rk[i]; in AES_decrypt()
1023 rk[0]; in AES_decrypt()
1028 rk[1]; in AES_decrypt()
1033 rk[2]; in AES_decrypt()
1038 rk[3]; in AES_decrypt()
1053 rk[0]; in AES_decrypt()
1059 rk[1]; in AES_decrypt()
1065 rk[2]; in AES_decrypt()
1071 rk[3]; in AES_decrypt()