Lines Matching refs:i
74 int i, j, a; in mbedtls_arc4_setup() local
82 for( i = 0; i < 256; i++ ) in mbedtls_arc4_setup()
83 m[i] = (unsigned char) i; in mbedtls_arc4_setup()
87 for( i = 0; i < 256; i++, k++ ) in mbedtls_arc4_setup()
91 a = m[i]; in mbedtls_arc4_setup()
93 m[i] = m[j]; in mbedtls_arc4_setup()
105 size_t i; in mbedtls_arc4_crypt() local
112 for( i = 0; i < length; i++ ) in mbedtls_arc4_crypt()
120 output[i] = (unsigned char) in mbedtls_arc4_crypt()
121 ( input[i] ^ m[(unsigned char)( a + b )] ); in mbedtls_arc4_crypt()
164 int i, ret = 0; in mbedtls_arc4_self_test() local
171 for( i = 0; i < 3; i++ ) in mbedtls_arc4_self_test()
174 mbedtls_printf( " ARC4 test #%d: ", i + 1 ); in mbedtls_arc4_self_test()
176 memcpy( ibuf, arc4_test_pt[i], 8 ); in mbedtls_arc4_self_test()
178 mbedtls_arc4_setup( &ctx, arc4_test_key[i], 8 ); in mbedtls_arc4_self_test()
181 if( memcmp( obuf, arc4_test_ct[i], 8 ) != 0 ) in mbedtls_arc4_self_test()