Lines Matching refs:i
119 int i, j; in mbedtls_md2_process() local
122 for( i = 0; i < 16; i++ ) in mbedtls_md2_process()
124 ctx->state[i + 16] = ctx->buffer[i]; in mbedtls_md2_process()
125 ctx->state[i + 32] = in mbedtls_md2_process()
126 (unsigned char)( ctx->buffer[i] ^ ctx->state[i]); in mbedtls_md2_process()
129 for( i = 0; i < 18; i++ ) in mbedtls_md2_process()
138 t = (unsigned char)( t + i ); in mbedtls_md2_process()
143 for( i = 0; i < 16; i++ ) in mbedtls_md2_process()
145 ctx->cksum[i] = (unsigned char) in mbedtls_md2_process()
146 ( ctx->cksum[i] ^ PI_SUBST[ctx->buffer[i] ^ t] ); in mbedtls_md2_process()
147 t = ctx->cksum[i]; in mbedtls_md2_process()
185 size_t i; in mbedtls_md2_finish() local
190 for( i = ctx->left; i < 16; i++ ) in mbedtls_md2_finish()
191 ctx->buffer[i] = x; in mbedtls_md2_finish()
257 int i; in mbedtls_md2_self_test() local
260 for( i = 0; i < 7; i++ ) in mbedtls_md2_self_test()
263 mbedtls_printf( " MD2 test #%d: ", i + 1 ); in mbedtls_md2_self_test()
265 mbedtls_md2( (unsigned char *) md2_test_str[i], in mbedtls_md2_self_test()
266 strlen( md2_test_str[i] ), md2sum ); in mbedtls_md2_self_test()
268 if( memcmp( md2sum, md2_test_sum[i], 16 ) != 0 ) in mbedtls_md2_self_test()