Lines Matching defs:expected
31 * You will find the expected results together with the test structures
129 * For easy creation of arrays of expected data. These macros correspond to
186 /* If decoding is expected to succeed, set this to 1, otherwise 0 */
481 * 0 decoded structure wasn't what was expected (failure)
482 * 1 decoded structure was what was expected (success)
485 const EXPECTED *expected, size_t expected_size,
495 if (expected->success == 0) {
503 && memcmp(enctst, expected, expected_size) == 0)
517 * 0 encoded DER wasn't what was expected (failure)
518 * 1 encoded DER was what was expected (success)
521 const unsigned char *expected, size_t expected_len,
533 || memcmp(data, expected, expected_len) != 0) {
670 const EXPECTED *expected, size_t expected_size,
684 ret = do_decode(encoding, encoding_length, expected, expected_size,
696 unsigned char *expected = NULL;
697 size_t expected_length = make_custom_der(custom_data, &expected, 0);
703 ret = do_encode(input, expected, expected_length, package);
704 OPENSSL_free(expected);
745 EXPECTED *expected
748 switch (do_encode_custom(expected, &test_custom_data[i], package)) {
750 if (expected->success) {
769 switch (do_decode_custom(&test_custom_data[i], expected,
773 if (expected->success) {
798 EXPECTED *expected
801 switch (do_enc_dec(expected, package->encdec_data_elem_size, package)) {
803 if (expected->success) {