Lines Matching refs:i
50 unsigned int i = 0; in test_PACKET_get_1() local
54 || !TEST_true(PACKET_get_1(&pkt, &i)) in test_PACKET_get_1()
55 || !TEST_uint_eq(i, 0x02) in test_PACKET_get_1()
57 || !TEST_true(PACKET_get_1(&pkt, &i)) in test_PACKET_get_1()
58 || !TEST_uint_eq(i, 0xfe) in test_PACKET_get_1()
59 || !TEST_false(PACKET_get_1(&pkt, &i))) in test_PACKET_get_1()
67 unsigned long i = 0; in test_PACKET_get_4() local
71 || !TEST_true(PACKET_get_4(&pkt, &i)) in test_PACKET_get_4()
72 || !TEST_ulong_eq(i, 0x08060402UL) in test_PACKET_get_4()
74 || !TEST_true(PACKET_get_4(&pkt, &i)) in test_PACKET_get_4()
75 || !TEST_ulong_eq(i, 0xfefcfaf8UL) in test_PACKET_get_4()
76 || !TEST_false(PACKET_get_4(&pkt, &i))) in test_PACKET_get_4()
84 unsigned int i = 0; in test_PACKET_get_net_2() local
88 || !TEST_true(PACKET_get_net_2(&pkt, &i)) in test_PACKET_get_net_2()
89 || !TEST_uint_eq(i, 0x0204) in test_PACKET_get_net_2()
91 || !TEST_true(PACKET_get_net_2(&pkt, &i)) in test_PACKET_get_net_2()
92 || !TEST_uint_eq(i, 0xfcfe) in test_PACKET_get_net_2()
93 || !TEST_false(PACKET_get_net_2(&pkt, &i))) in test_PACKET_get_net_2()
101 unsigned long i = 0; in test_PACKET_get_net_3() local
105 || !TEST_true(PACKET_get_net_3(&pkt, &i)) in test_PACKET_get_net_3()
106 || !TEST_ulong_eq(i, 0x020406UL) in test_PACKET_get_net_3()
108 || !TEST_true(PACKET_get_net_3(&pkt, &i)) in test_PACKET_get_net_3()
109 || !TEST_ulong_eq(i, 0xfafcfeUL) in test_PACKET_get_net_3()
110 || !TEST_false(PACKET_get_net_3(&pkt, &i))) in test_PACKET_get_net_3()
118 unsigned long i = 0; in test_PACKET_get_net_4() local
122 || !TEST_true(PACKET_get_net_4(&pkt, &i)) in test_PACKET_get_net_4()
123 || !TEST_ulong_eq(i, 0x02040608UL) in test_PACKET_get_net_4()
125 || !TEST_true(PACKET_get_net_4(&pkt, &i)) in test_PACKET_get_net_4()
126 || !TEST_ulong_eq(i, 0xf8fafcfeUL) in test_PACKET_get_net_4()
127 || !TEST_false(PACKET_get_net_4(&pkt, &i))) in test_PACKET_get_net_4()
136 unsigned long i = 0; in test_PACKET_get_sub_packet() local
140 || !TEST_true(PACKET_get_net_4(&subpkt, &i)) in test_PACKET_get_sub_packet()
141 || !TEST_ulong_eq(i, 0x02040608UL) in test_PACKET_get_sub_packet()
145 || !TEST_true(PACKET_get_net_4(&subpkt, &i)) in test_PACKET_get_sub_packet()
146 || !TEST_ulong_eq(i, 0xf8fafcfeUL) in test_PACKET_get_sub_packet()
352 unsigned int i; in test_PACKET_get_length_prefixed_1() local
357 for (i = 1; i < BUF_LEN; i++) in test_PACKET_get_length_prefixed_1()
358 buf1[i] = (i * 2) & 0xff; in test_PACKET_get_length_prefixed_1()
364 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_1()
365 || !TEST_uint_eq(i, 0x0204) in test_PACKET_get_length_prefixed_1()
377 unsigned int i; in test_PACKET_get_length_prefixed_2() local
381 for (i = 1; i <= 1024; i++) in test_PACKET_get_length_prefixed_2()
382 buf1[i - 1] = (i * 2) & 0xff; in test_PACKET_get_length_prefixed_2()
388 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_2()
389 || !TEST_uint_eq(i, 0x0608) in test_PACKET_get_length_prefixed_2()
401 unsigned int i; in test_PACKET_get_length_prefixed_3() local
405 for (i = 0; i < 1024; i++) in test_PACKET_get_length_prefixed_3()
406 buf1[i] = (i * 2) & 0xff; in test_PACKET_get_length_prefixed_3()
412 || !TEST_true(PACKET_get_net_2(&subpkt, &i)) in test_PACKET_get_length_prefixed_3()
413 || !TEST_uint_eq(i, 0x0608) in test_PACKET_get_length_prefixed_3()
425 unsigned int i; in test_PACKET_as_length_prefixed_1() local
430 for (i = 1; i < BUF_LEN; i++) in test_PACKET_as_length_prefixed_1()
431 buf1[i] = (i * 2) & 0xff; in test_PACKET_as_length_prefixed_1()
449 unsigned int i; in test_PACKET_as_length_prefixed_2() local
453 for (i = 1; i <= 1024; i++) in test_PACKET_as_length_prefixed_2()
454 buf[i-1] = (i * 2) & 0xff; in test_PACKET_as_length_prefixed_2()
502 size_t i; in test_PACKET_get_quic_vlint() local
505 for (i = 0; i < OSSL_NELEM(cases); ++i) { in test_PACKET_get_quic_vlint()
509 if (!TEST_true(PACKET_buf_init(&pkt, cases[i].buf, sizeof(cases[i].buf))) in test_PACKET_get_quic_vlint()
511 || !TEST_uint64_t_eq(v, cases[i].value) in test_PACKET_get_quic_vlint()
513 sizeof(cases[i].buf) - cases[i].expected_read_count) in test_PACKET_get_quic_vlint()
543 size_t i; in test_PACKET_get_quic_length_prefixed() local
546 for (i = 0; i < OSSL_NELEM(cases); ++i) { in test_PACKET_get_quic_length_prefixed()
549 if (!TEST_true(PACKET_buf_init(&pkt, cases[i].buf, in test_PACKET_get_quic_length_prefixed()
550 cases[i].fail in test_PACKET_get_quic_length_prefixed()
551 ? sizeof(cases[i].buf) in test_PACKET_get_quic_length_prefixed()
552 : cases[i].enclen + cases[i].len))) in test_PACKET_get_quic_length_prefixed()
555 if (!TEST_int_eq(PACKET_get_quic_length_prefixed(&pkt, &subpkt), !cases[i].fail)) in test_PACKET_get_quic_length_prefixed()
558 if (cases[i].fail) { in test_PACKET_get_quic_length_prefixed()
559 if (!TEST_ptr_eq(pkt.curr, cases[i].buf)) in test_PACKET_get_quic_length_prefixed()
564 if (!TEST_ptr_eq(subpkt.curr, cases[i].buf + cases[i].enclen)) in test_PACKET_get_quic_length_prefixed()
567 if (!TEST_size_t_eq(subpkt.remaining, cases[i].len)) in test_PACKET_get_quic_length_prefixed()
578 unsigned int i; in setup_tests() local
580 for (i = 1; i <= BUF_LEN; i++) in setup_tests()
581 smbuf[i - 1] = (i * 2) & 0xff; in setup_tests()