Lines Matching refs:package

486                      const TEST_PACKAGE *package)  in do_decode()  argument
493 enctst = package->d2i(NULL, &bytes, nbytes); in do_decode()
509 package->ifree(enctst); in do_decode()
522 const TEST_PACKAGE *package) in do_encode() argument
528 len = package->i2d(input, &data); in do_encode()
550 const TEST_PACKAGE *package) in do_enc_dec() argument
557 len = package->i2d(p, &data); in do_enc_dec()
561 ret = do_decode(data, len, bytes, nbytes, package); in do_enc_dec()
671 const TEST_PACKAGE *package) in do_decode_custom() argument
685 package); in do_decode_custom()
694 const TEST_PACKAGE *package) in do_encode_custom() argument
703 ret = do_encode(input, expected, expected_length, package); in do_encode_custom()
709 static int do_print_item(const TEST_PACKAGE *package) in do_print_item() argument
712 const ASN1_ITEM *i = ASN1_ITEM_ptr(package->asn1_type); in do_print_item()
716 OPENSSL_assert(package->encode_expectations_elem_size <= DATA_BUF_SIZE); in do_print_item()
721 (int)package->encode_expectations_elem_size); in do_print_item()
729 static int test_intern(const TEST_PACKAGE *package) in test_intern() argument
735 if (package->skip) in test_intern()
739 nelems = package->encode_expectations_size in test_intern()
740 / package->encode_expectations_elem_size; in test_intern()
743 size_t pos = i * package->encode_expectations_elem_size; in test_intern()
745 = (EXPECTED *)&((unsigned char *)package->encode_expectations)[pos]; in test_intern()
747 switch (do_encode_custom(expected, &test_custom_data[i], package)) { in test_intern()
751 i, package->name); in test_intern()
758 i, package->name); in test_intern()
769 package->encode_expectations_elem_size, in test_intern()
770 package)) { in test_intern()
774 i, package->name); in test_intern()
781 i, package->name); in test_intern()
794 nelems = package->encdec_data_size / package->encdec_data_elem_size; in test_intern()
796 size_t pos = i * package->encdec_data_elem_size; in test_intern()
798 = (EXPECTED *)&((unsigned char *)package->encdec_data)[pos]; in test_intern()
800 switch (do_enc_dec(expected, package->encdec_data_elem_size, package)) { in test_intern()
804 i, package->name); in test_intern()
811 i, package->name); in test_intern()
822 if (!do_print_item(package)) { in test_intern()
823 TEST_error("Printing of %s failed", package->name); in test_intern()