Lines Matching refs:i
58 int i; in mbedtls_xtea_setup() local
62 for( i = 0; i < 4; i++ ) in mbedtls_xtea_setup()
64 ctx->k[i] = MBEDTLS_GET_UINT32_BE( key, i << 2 ); in mbedtls_xtea_setup()
74 uint32_t *k, v0, v1, i; in mbedtls_xtea_crypt_ecb() local
85 for( i = 0; i < 32; i++ ) in mbedtls_xtea_crypt_ecb()
96 for( i = 0; i < 32; i++ ) in mbedtls_xtea_crypt_ecb()
118 int i; in mbedtls_xtea_crypt_cbc() local
131 for( i = 0; i < 8; i++ ) in mbedtls_xtea_crypt_cbc()
132 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
145 for( i = 0; i < 8; i++ ) in mbedtls_xtea_crypt_cbc()
146 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
209 int i, ret = 0; in mbedtls_xtea_self_test() local
214 for( i = 0; i < 6; i++ ) in mbedtls_xtea_self_test()
217 mbedtls_printf( " XTEA test #%d: ", i + 1 ); in mbedtls_xtea_self_test()
219 memcpy( buf, xtea_test_pt[i], 8 ); in mbedtls_xtea_self_test()
221 mbedtls_xtea_setup( &ctx, xtea_test_key[i] ); in mbedtls_xtea_self_test()
224 if( memcmp( buf, xtea_test_ct[i], 8 ) != 0 ) in mbedtls_xtea_self_test()