Lines Matching refs:i
54 #define GET_UINT32_BE(n,b,i) \ argument
56 (n) = ( (uint32_t) (b)[(i) ] << 24 ) \
57 | ( (uint32_t) (b)[(i) + 1] << 16 ) \
58 | ( (uint32_t) (b)[(i) + 2] << 8 ) \
59 | ( (uint32_t) (b)[(i) + 3] ); \
64 #define PUT_UINT32_BE(n,b,i) \ argument
66 (b)[(i) ] = (unsigned char) ( (n) >> 24 ); \
67 (b)[(i) + 1] = (unsigned char) ( (n) >> 16 ); \
68 (b)[(i) + 2] = (unsigned char) ( (n) >> 8 ); \
69 (b)[(i) + 3] = (unsigned char) ( (n) ); \
91 int i; in mbedtls_xtea_setup() local
95 for( i = 0; i < 4; i++ ) in mbedtls_xtea_setup()
97 GET_UINT32_BE( ctx->k[i], key, i << 2 ); in mbedtls_xtea_setup()
107 uint32_t *k, v0, v1, i; in mbedtls_xtea_crypt_ecb() local
118 for( i = 0; i < 32; i++ ) in mbedtls_xtea_crypt_ecb()
129 for( i = 0; i < 32; i++ ) in mbedtls_xtea_crypt_ecb()
151 int i; in mbedtls_xtea_crypt_cbc() local
164 for( i = 0; i < 8; i++ ) in mbedtls_xtea_crypt_cbc()
165 output[i] = (unsigned char)( output[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
178 for( i = 0; i < 8; i++ ) in mbedtls_xtea_crypt_cbc()
179 output[i] = (unsigned char)( input[i] ^ iv[i] ); in mbedtls_xtea_crypt_cbc()
242 int i, ret = 0; in mbedtls_xtea_self_test() local
247 for( i = 0; i < 6; i++ ) in mbedtls_xtea_self_test()
250 mbedtls_printf( " XTEA test #%d: ", i + 1 ); in mbedtls_xtea_self_test()
252 memcpy( buf, xtea_test_pt[i], 8 ); in mbedtls_xtea_self_test()
254 mbedtls_xtea_setup( &ctx, xtea_test_key[i] ); in mbedtls_xtea_self_test()
257 if( memcmp( buf, xtea_test_ct[i], 8 ) != 0 ) in mbedtls_xtea_self_test()