Lines Matching refs:rc
500 uint_8t cc, rc, hi;
523 for( cc = keylen, rc = 1; cc < hi; cc += 4 )
533 t0 = s_box(t1) ^ rc;
537 rc = f2(rc);
664 static void update_encrypt_key_128( uint_8t k[N_BLOCK], uint_8t *rc )
667 k[0] ^= s_box(k[13]) ^ *rc;
671 *rc = f2( *rc );
686 { uint_8t s1[N_BLOCK], r, rc = 1;
696 update_encrypt_key_128( o_key, &rc );
702 update_encrypt_key_128( o_key, &rc );
708 update_encrypt_key_128( o_key, &rc );
718 static void update_decrypt_key_128( uint_8t k[N_BLOCK], uint_8t *rc )
728 *rc = d2(*rc);
729 k[0] ^= s_box(k[13]) ^ *rc;
740 uint_8t s1[N_BLOCK], r, rc = 0x6c;
750 update_decrypt_key_128( o_key, &rc );
756 update_decrypt_key_128( o_key, &rc );
761 update_decrypt_key_128( o_key, &rc );
771 static void update_encrypt_key_256( uint_8t k[2 * N_BLOCK], uint_8t *rc )
774 k[0] ^= s_box(k[29]) ^ *rc;
778 *rc = f2( *rc );
807 uint_8t s1[N_BLOCK], r, rc = 1;
823 update_encrypt_key_256( o_key, &rc );
834 update_encrypt_key_256( o_key, &rc );
841 update_encrypt_key_256( o_key, &rc );
851 static void update_decrypt_key_256( uint_8t k[2 * N_BLOCK], uint_8t *rc )
875 *rc = d2(*rc);
876 k[0] ^= s_box(k[29]) ^ *rc;
888 uint_8t s1[N_BLOCK], r, rc = 0x80;
904 update_decrypt_key_256( o_key, &rc );
915 update_decrypt_key_256( o_key, &rc );