• Home
  • Raw
  • Download

Lines Matching refs:bufA

44     unsigned char bufA[100];
49 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
50 bufA[i] = (unsigned char) i;
57 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
61 ASSERT_COMPARE( tmp, 100, bufA, 100 );
88 unsigned char bufA[100], bufB[100];
92 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
93 bufA[i] = (unsigned char) i;
102 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
106 ASSERT_COMPARE( tmp, 100, bufA, 100 );
177 unsigned char bufA[100], bufB[100];
182 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
183 bufA[i] = (unsigned char) i;
192 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
195 ASSERT_COMPARE( tmp, 10, bufA, 10 );
197 ASSERT_COMPARE( tmp, 70, bufA + 10, 70 );
199 ASSERT_COMPARE( tmp, tmp_len, bufA + 80, 20 );
347 unsigned char bufA[100], bufB[100];
352 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
353 bufA[i] = (unsigned char) i;
359 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
364 ASSERT_COMPARE( tmp, 80, bufA, 80 );
367 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
390 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
397 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
403 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
405 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
411 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
414 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
420 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
422 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
429 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
432 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
469 unsigned char bufA[100], bufB[100];
474 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
475 bufA[i] = (unsigned char) i;
481 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
486 ASSERT_COMPARE( tmp, 80, bufA, 80 );
529 ASSERT_COMPARE( tmp, 20, bufA + 80, 20 );
668 unsigned char bufA[100], bufB[20], bufC[10];
673 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
674 bufA[i] = (unsigned char) i;
682 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
687 ASSERT_COMPARE( tmp, 80, bufA, 80 );
690 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
706 ASSERT_COMPARE( tmp, tmp_len, bufA + 80, 10 );
708 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
728 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
730 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
745 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
747 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
758 ASSERT_COMPARE( tmp, 20, bufA + 80, 20 );
767 ASSERT_COMPARE( tmp, 10, bufA + 80, 10 );
769 ASSERT_COMPARE( tmp, 10, bufA + 90, 10 );
987 unsigned char bufA[100], bufB[100];
992 for( size_t i=0; (unsigned) i < sizeof( bufA ); i++ )
993 bufA[i] = (unsigned char) i;
999 TEST_ASSERT( mbedtls_mps_reader_feed( &rd, bufA, sizeof( bufA ) ) == 0 );
1015 ASSERT_COMPARE( tmp, 20, bufA + 80, 20 );
1023 ASSERT_COMPARE( tmp, 20, bufA + 80, 20 );
1045 ASSERT_COMPARE( tmp, 15, bufA + 80, 15 );
1054 ASSERT_COMPARE( tmp, 15, bufA + 80, 15 );
1056 ASSERT_COMPARE( tmp, 5, bufA + 95, 5 );
1065 ASSERT_COMPARE( tmp, 15, bufA + 80, 15 );
1068 ASSERT_COMPARE( tmp, 5, bufA + 95, 5 );
1077 ASSERT_COMPARE( tmp, 15, bufA + 80, 15 );
1079 ASSERT_COMPARE( tmp, 5, bufA + 95, 5 );
1089 ASSERT_COMPARE( tmp, 15, bufA + 80, 15 );
1092 ASSERT_COMPARE( tmp, 5, bufA + 95, 5 );