Lines Matching refs:custom_data
594 static size_t make_custom_der(const TEST_CUSTOM_DATA *custom_data, in make_custom_der() argument
606 1 + der_encode_length(custom_data->nbytes1, NULL) in make_custom_der()
607 + custom_data->nbytes1; in make_custom_der()
609 for (i = custom_data->nbytes2; i > 0; i--) { in make_custom_der()
610 if (custom_data->bytes2[i - 1] != '\0') in make_custom_der()
619 1 + der_encode_length(custom_data->nbytes2, NULL) in make_custom_der()
620 + custom_data->nbytes2; in make_custom_der()
648 der_encode_length(custom_data->nbytes1, &p); in make_custom_der()
649 memcpy(p, custom_data->bytes1, custom_data->nbytes1); in make_custom_der()
650 p += custom_data->nbytes1; in make_custom_der()
658 der_encode_length(custom_data->nbytes2, &p); in make_custom_der()
659 memcpy(p, custom_data->bytes2, custom_data->nbytes2); in make_custom_der()
660 p += custom_data->nbytes2; in make_custom_der()
669 static int do_decode_custom(const TEST_CUSTOM_DATA *custom_data, in do_decode_custom() argument
678 size_t encoding_length = make_custom_der(custom_data, &encoding, 1); in do_decode_custom()
693 const TEST_CUSTOM_DATA *custom_data, in do_encode_custom() argument
697 size_t expected_length = make_custom_der(custom_data, &expected, 0); in do_encode_custom()