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