| H A D | hex_test.c | 12 // Test vectors: input bytes and expected hex strings 29 // Test encoding: bytes -> hex string 92 // Test decoding: hex string -> bytes 102 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); in test_hex_decode_good() 103 assert(bytes != NULL); in test_hex_decode_good() local 105 assert(memcmp(bytes, test_bytes_1, out_len) == 0); in test_hex_decode_good() 106 free(bytes); in test_hex_decode_good() 115 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); in test_hex_decode_good() 116 assert(bytes != NULL); in test_hex_decode_good() 118 assert(memcmp(bytes, test_bytes_ in test_hex_decode_good() 117 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_decode_good() local 131 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_decode_good() local 146 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_decode_good() local 160 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_decode_good() local 203 UINT8 *bytes = get_bytes_hex(NULL, "data", &out_len); test_hex_error_cases() local 212 UINT8 *bytes = get_bytes_hex(obj, "data", NULL); test_hex_error_cases() local 221 UINT8 *bytes = get_bytes_hex(obj, "nonexistent", &out_len); test_hex_error_cases() local 231 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_error_cases() local 242 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_error_cases() local 253 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_error_cases() local 263 UINT8 *bytes = get_bytes_hex(obj, "data", &out_len); test_hex_error_cases() local [all...] |