1Empty length
2parse_prefixes:"04":MBEDTLS_ERR_ASN1_OUT_OF_DATA:UNPREDICTABLE_RESULT
3
4Incomplete length
5parse_prefixes:"0481":MBEDTLS_ERR_ASN1_OUT_OF_DATA:UNPREDICTABLE_RESULT
6
7Prefixes of OCTET STRING, length=0
8parse_prefixes:"0400":0:0
9
10Prefixes of OCTET STRING, length=0 (0 length bytes)
11parse_prefixes:"0480":MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_LENGTH
12
13Prefixes of OCTET STRING, length=1
14parse_prefixes:"040141":0:0
15
16Prefixes of OCTET STRING, length=2
17parse_prefixes:"04024142":0:0
18
19Prefixes of BOOLEAN, length=0
20parse_prefixes:"0100":MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_LENGTH
21
22Prefixes of BOOLEAN, length=1
23parse_prefixes:"010100":0:0
24
25Prefixes of BOOLEAN, length=2
26parse_prefixes:"01020000":MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_LENGTH
27
28Prefixes of INTEGER, length=1
29parse_prefixes:"020141":0:0
30
31Prefixes of INTEGER, length=2
32parse_prefixes:"02024142":0:0
33
34Prefixes of INTEGER, length=5
35parse_prefixes:"02054142434445":0:0
36
37Prefixes of empty BIT STRING
38parse_prefixes:"0300":MBEDTLS_ERR_ASN1_OUT_OF_DATA:UNPREDICTABLE_RESULT
39
40Prefixes of BIT STRING, unused_bits=0, payload_length=0
41parse_prefixes:"030100":0:MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
42
43Prefixes of BIT STRING, unused_bits=0, payload_length=1
44parse_prefixes:"0302002a":0:MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
45
46Prefixes of BIT STRING, unused_bits=1, payload_length=1
47parse_prefixes:"0302012a":0:MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
48
49Prefixes of empty SEQUENCE
50parse_prefixes:"3000":0:0
51
52Prefixes of SEQUENCE of BOOLEAN, INTEGER, INTEGER
53parse_prefixes:"300b01010102012a0203123456":0:0
54
55Prefixes of SEQUENCE of (SEQUENCE of INTEGER, INTEGER), INTEGER
56parse_prefixes:"300b3006020141020142020161":0:0
57
58length=0 (short form)
59get_len:"00":0
60
61length=0 (1 length byte)
62get_len:"8100":0
63
64length=0 (2 length bytes)
65get_len:"820000":0
66
67length=1 (short form)
68get_len:"01":1
69
70length=1 (1 length byte)
71get_len:"8101":1
72
73length=1 (2 length bytes)
74get_len:"820001":1
75
76length=1 (3 length bytes)
77get_len:"83000001":1
78
79length=1 (4 length bytes)
80get_len:"8400000001":1
81
82length=2 (short form)
83get_len:"02":2
84
85length=2 (1 length byte)
86get_len:"8102":2
87
88length=2 (2 length bytes)
89get_len:"820002":2
90
91length=2 (3 length bytes)
92get_len:"83000002":2
93
94length=2 (4 length bytes)
95get_len:"8400000002":2
96
97length=127 (short form)
98get_len:"7f":127
99
100length=128 (1 length byte)
101get_len:"8180":128
102
103length=128 (2 length bytes)
104get_len:"820080":128
105
106length=255 (1 length byte)
107get_len:"81ff":255
108
109length=255 (2 length bytes)
110get_len:"8200ff":255
111
112length=256 (2 length bytes)
113get_len:"820100":256
114
115length=256 (3 length bytes)
116get_len:"83000100":256
117
118length=258 (2 length bytes)
119get_len:"820102":258
120
121length=258 (3 length bytes)
122get_len:"83000102":258
123
124length=65535 (2 length bytes)
125get_len:"82ffff":65535
126
127length=65535 (3 length bytes)
128get_len:"8300ffff":65535
129
130length=65535 (4 length bytes)
131get_len:"840000ffff":65535
132
133length=65536 (3 length bytes)
134get_len:"83010000":65536
135
136length=65536 (4 length bytes)
137get_len:"8400010000":65536
138
139length=16777215 (3 length bytes)
140get_len:"83ffffff":16777215
141
142length=16777215 (4 length bytes)
143get_len:"8400ffffff":16777215
144
145length=16777216 (4 length bytes)
146get_len:"8401000000":16777216
147
148length=16909060 (4 length bytes)
149get_len:"8401020304":16909060
150
151BOOLEAN FALSE
152get_boolean:"010100":0:0
153
154BOOLEAN TRUE (1)
155get_boolean:"010101":1:0
156
157BOOLEAN TRUE (2)
158get_boolean:"010101":1:0
159
160BOOLEAN TRUE (128)
161get_boolean:"010180":1:0
162
163BOOLEAN TRUE (255)
164get_boolean:"0101ff":1:0
165
166Not BOOLEAN
167get_boolean:"020101":0:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
168
169Empty INTEGER
170empty_integer:"0200"
171
172INTEGER 0
173get_integer:"020100":"0":0
174
175INTEGER 0, extra leading 0
176get_integer:"02020000":"0":0
177
178INTEGER 1
179get_integer:"020101":"1":0:
180
181INTEGER 1, extra leading 0
182get_integer:"02020001":"1":0:
183
184INTEGER 0x7f
185get_integer:"02017f":"7f":0
186
187INTEGER 0x80
188get_integer:"02020080":"80":0
189
190INTEGER 0x80, extra leading 0
191get_integer:"0203000080":"80":0
192
193INTEGER 0xff
194get_integer:"020200ff":"ff":0
195
196INTEGER 0x7fff
197get_integer:"02027fff":"7fff":0
198
199INTEGER 0x12345678
200get_integer:"020412345678":"12345678":0
201
202INTEGER 0x12345678, extra leading 0
203get_integer:"02050012345678":"12345678":0
204
205INTEGER 0x7fffffff
206get_integer:"02047fffffff":"7fffffff":0
207
208INTEGER 0x7fffffff, extra leading 0
209get_integer:"0205007fffffff":"7fffffff":0
210
211INTEGER 0x80000000
212get_integer:"02050080000000":"80000000":0
213
214INTEGER 0xffffffff
215get_integer:"020500ffffffff":"ffffffff":0
216
217INTEGER 0x100000000
218get_integer:"02050100000000":"0100000000":0
219
220INTEGER 0x123456789abcdef0
221get_integer:"0208123456789abcdef0":"123456789abcdef0":0
222
223INTEGER 0xfedcab9876543210
224get_integer:"020900fedcab9876543210":"fedcab9876543210":0
225
226INTEGER 0x1fedcab9876543210
227get_integer:"020901fedcab9876543210":"1fedcab9876543210":0
228
229INTEGER with 127 value octets
230get_integer:"027f0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd":0
231
232INTEGER with 127 value octets (long length encoding)
233get_integer:"02817f0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcd":0
234
235INTEGER with 128 value octets
236get_integer:"0281800123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef":0
237
238INTEGER with 128 value octets (leading 0 in length)
239get_integer:"028200800123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef":"0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef":0
240
241INTEGER -1
242get_integer:"0201ff":"-1":0
243
244INTEGER -1, extra leading ff
245get_integer:"0202ffff":"-1":0
246
247INTEGER -0x7f
248get_integer:"020181":"-7f":0
249
250INTEGER -0x80
251get_integer:"020180":"-80":0
252
253INTEGER -0x81
254get_integer:"0202ff7f":"-81":0
255
256INTEGER -0xff
257get_integer:"0202ff01":"-ff":0
258
259INTEGER -0x100
260get_integer:"0202ff00":"-100":0
261
262INTEGER -0x7fffffff
263get_integer:"020480000001":"-7fffffff":0
264
265INTEGER -0x80000000
266get_integer:"020480000000":"-80000000":0
267
268INTEGER -0x80000001
269get_integer:"0205ff7fffffff":"-80000001":0
270
271INTEGER -0xffffffff
272get_integer:"0205ff00000001":"-ffffffff":0
273
274INTEGER -0x100000000
275get_integer:"0205ff00000000":"-100000000":0
276
277INTEGER -0x123456789abcdef0
278get_integer:"0208edcba98765432110":"-123456789abcdef0":0
279
280INTEGER -0xfedcba9876543210
281get_integer:"0209ff0123456789abcdf0":"-fedcba9876543210":0
282
283INTEGER -0x1fedcab9876543210
284get_integer:"0209fe0123546789abcdf0":"-1fedcab9876543210":0
285
286Not INTEGER
287get_integer:"010101":"":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
288
289INTEGER too large for mpi
290get_mpi_too_large:
291
292ENUMERATED 0
293get_enum:"0A0100":"0":0
294
295ENUMERATED 0, extra leading 0
296get_enum:"0A020000":"0":0
297
298ENUMERATED 1
299get_enum:"0A0101":"1":0
300
301ENUMERATED 1, extra leading 0
302get_enum:"0A020001":"1":0
303
304ENUMERATED 0x7f
305get_enum:"0A017f":"7f":0
306
307ENUMERATED 0x80
308get_enum:"0A020080":"80":0
309
310ENUMERATED 0x80, extra leading 0
311get_enum:"0A03000080":"80":0
312
313ENUMERATED 0xff
314get_enum:"0A0200ff":"ff":0
315
316ENUMERATED 0x7fff
317get_enum:"0A027fff":"7fff":0
318
319ENUMERATED 0x12345678
320get_enum:"0A0412345678":"12345678":0
321
322ENUMERATED 0x12345678, extra leading 0
323get_enum:"0A050012345678":"12345678":0
324
325ENUMERATED 0x7fffffff
326get_enum:"0A047fffffff":"7fffffff":0
327
328ENUMERATED 0x7fffffff, extra leading 0
329get_enum:"0A05007fffffff":"7fffffff":0
330
331ENUMERATED 0x80000000
332get_enum:"0A050080000000":"80000000":0
333
334ENUMERATED 0xffffffff
335get_enum:"0A0500ffffffff":"ffffffff":0
336
337ENUMERATED 0x100000000
338get_enum:"0A050100000000":"0100000000":0
339
340ENUMERATED -1
341get_enum:"0A01ff":"-1":0
342
343ENUMERATED -1, extra leading ff
344get_enum:"0A02ffff":"-1":0
345
346ENUMERATED -0x7f
347get_enum:"0A0181":"-7f":0
348
349ENUMERATED -0x80
350get_enum:"0A0180":"-80":0
351
352ENUMERATED -0x81
353get_enum:"0A02ff7f":"-81":0
354
355ENUMERATED -0xff
356get_enum:"0A02ff01":"-ff":0
357
358ENUMERATED -0x100
359get_enum:"0A02ff00":"-100":0
360
361ENUMERATED -0x7fffffff
362get_enum:"0A0480000001":"-7fffffff":0
363
364ENUMERATED -0x80000000
365get_enum:"0A0480000000":"-80000000":0
366
367ENUMERATED -0x80000001
368get_enum:"0A05ff7fffffff":"-80000001":0
369
370ENUMERATED -0xffffffff
371get_enum:"0A05ff00000001":"-ffffffff":0
372
373ENUMERATED -0x100000000
374get_enum:"0A05ff00000000":"-100000000":0
375
376BIT STRING: empty
377get_bitstring:"0300":0:0:MBEDTLS_ERR_ASN1_OUT_OF_DATA:MBEDTLS_ERR_ASN1_INVALID_DATA
378
379BIT STRING: octets=0, unused_bits=0
380get_bitstring:"030100":0:0:0:0
381
382BIT STRING: octets=0, unused_bits=7
383get_bitstring:"030107":0:7:0:MBEDTLS_ERR_ASN1_INVALID_DATA
384
385BIT STRING: octets=0, unused_bits=8
386get_bitstring:"030108":0:0:MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_DATA
387
388BIT STRING: octets=1, unused_bits=0
389get_bitstring:"03020041":1:0:0:0
390
391BIT STRING: octets=1, unused_bits=7
392get_bitstring:"03020741":1:7:0:MBEDTLS_ERR_ASN1_INVALID_DATA
393
394BIT STRING: octets=1, unused_bits=8
395get_bitstring:"03020841":1:8:MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_DATA
396
397BIT STRING: octets=2, unused_bits=0
398get_bitstring:"0303004142":2:0:0:0
399
400BIT STRING: octets=2, unused_bits=7
401get_bitstring:"0303074142":2:7:0:MBEDTLS_ERR_ASN1_INVALID_DATA
402
403BIT STRING: octets=2, unused_bits=8
404get_bitstring:"0303084142":2:8:MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_DATA
405
406BIT STRING with trailing garbage, unused_bits=0
407get_bitstring:"030200417e":1:0:MBEDTLS_ERR_ASN1_LENGTH_MISMATCH:0
408
409BIT STRING with trailing garbage, unused_bits=7
410get_bitstring:"030207417e":1:7:MBEDTLS_ERR_ASN1_LENGTH_MISMATCH:MBEDTLS_ERR_ASN1_INVALID_DATA
411
412BIT STRING with trailing garbage, unused_bits=8
413get_bitstring:"030208417e":1:8:MBEDTLS_ERR_ASN1_INVALID_LENGTH:MBEDTLS_ERR_ASN1_INVALID_DATA
414
415Not BIT STRING
416get_bitstring:"04020100":0:0:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
417
418SEQUENCE OF 0 OCTET STRING
419get_sequence_of:"3000":0x04:"":0
420
421SEQUENCE OF 0 OCTET STRING plus trailing garbage
422get_sequence_of:"30007e":0x04:"":MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
423
424SEQUENCE of 1 OCTET STRING truncated after tag
425get_sequence_of:"300104":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
426
427SEQUENCE of 1 OCTET STRING truncated in length #1
428get_sequence_of:"30020481":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
429
430SEQUENCE of 1 OCTET STRING truncated in length #2
431get_sequence_of:"3003048201":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
432
433SEQUENCE of 1 OCTET STRING truncated in content #1
434get_sequence_of:"30020401":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
435
436SEQUENCE of 1 OCTET STRING truncated in content #2
437get_sequence_of:"3003040241":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
438
439SEQUENCE of 1 OCTET STRING truncated in content #3
440get_sequence_of:"300404034142":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
441
442SEQUENCE of 1 OCTET STRING (0)
443get_sequence_of:"30020400":0x04:"4,0":0
444
445SEQUENCE of 1 OCTET STRING (1)
446get_sequence_of:"3003040141":0x04:"4,1":0
447
448SEQUENCE of 1 OCTET STRING (126)
449get_sequence_of:"308180047e414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141":0x04:"5,126":0
450
451SEQUENCE of 2 OCTET STRINGs, second truncated after tag
452get_sequence_of:"30050402414104":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
453
454SEQUENCE of 2 OCTET STRINGs, second truncated in length #1
455get_sequence_of:"3006040241410481":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
456
457SEQUENCE of 2 OCTET STRINGs, second truncated in length #2
458get_sequence_of:"300704024141048201":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
459
460SEQUENCE of 2 OCTET STRINGs, second truncated in content #1
461get_sequence_of:"3006040241410401":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
462
463SEQUENCE of 2 OCTET STRINGs, second truncated in content #2
464get_sequence_of:"300704024141040241":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
465
466SEQUENCE of 2 OCTET STRINGs, second truncated in content #3
467get_sequence_of:"30080402414104034142":0x04:"":MBEDTLS_ERR_ASN1_OUT_OF_DATA
468
469SEQUENCE of 2 OCTET STRINGs (2, 0)
470get_sequence_of:"3006040241410400":0x04:"4,2,8,0":0
471
472SEQUENCE of 2 OCTET STRINGs (2, 1)
473get_sequence_of:"300704024141040142":0x04:"4,2,8,1":0
474
475SEQUENCE of 2 OCTET STRINGs (0, 2)
476get_sequence_of:"3006040004024141":0x04:"4,0,6,2":0
477
478SEQUENCE of 2 OCTET STRINGs (1, 2)
479get_sequence_of:"300704014104024242":0x04:"4,1,7,2":0
480
481Not a SEQUENCE (not CONSTRUCTED)
482get_sequence_of:"1000":0x04:"":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
483
484Not a SEQUENCE (not SEQUENCE)
485get_sequence_of:"3100":0x04:"":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
486
487Traverse empty SEQUENCE
488traverse_sequence_of:"3000":0:0:0:0:"":0
489
490Traverse empty SEQUENCE plus trailing garbage
491traverse_sequence_of:"30007e":0:0:0:0:"":MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
492
493Traverse SEQUENCE of INTEGER: 1 INTEGER
494traverse_sequence_of:"30050203123456":0xff:0x02:0:0:"4,0x02,3":0
495
496Traverse SEQUENCE of INTEGER: 2 INTEGERs
497traverse_sequence_of:"30080203123456020178":0xff:0x02:0:0:"4,0x02,3,9,0x02,1":0
498
499Traverse SEQUENCE of INTEGER: INTEGER, NULL
500traverse_sequence_of:"300702031234560500":0xff:0x02:0:0:"4,0x02,3":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
501
502Traverse SEQUENCE of INTEGER: NULL, INTEGER
503traverse_sequence_of:"300705000203123456":0xff:0x02:0:0:"":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
504
505Traverse SEQUENCE of ANY: NULL, INTEGER
506traverse_sequence_of:"300705000203123456":0:0:0:0:"4,0x05,0,6,0x02,3":0
507
508Traverse SEQUENCE of ANY, skip non-INTEGER: INTEGER, NULL
509traverse_sequence_of:"300702031234560500":0:0:0xff:0x02:"4,0x02,3":0
510
511Traverse SEQUENCE of ANY, skip non-INTEGER: NULL, INTEGER
512traverse_sequence_of:"300705000203123456":0:0:0xff:0x02:"6,0x02,3":0
513
514Traverse SEQUENCE of INTEGER, skip everything
515traverse_sequence_of:"30080203123456020178":0xff:0x02:0:1:"":0
516
517Traverse SEQUENCE of {NULL, OCTET STRING}, skip NULL: OS, NULL
518traverse_sequence_of:"300704031234560500":0xfe:0x04:0xff:0x04:"4,0x04,3":0
519
520Traverse SEQUENCE of {NULL, OCTET STRING}, skip NULL: NULL, OS
521traverse_sequence_of:"300705000403123456":0xfe:0x04:0xff:0x04:"6,0x04,3":0
522
523Traverse SEQUENCE of {NULL, OCTET STRING}, skip everything
524traverse_sequence_of:"300705000403123456":0xfe:0x04:0:1:"":0
525
526Traverse SEQUENCE of INTEGER, stop at 0: NULL
527traverse_sequence_of:"30020500":0xff:0x02:0:0:"":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
528
529Traverse SEQUENCE of INTEGER, stop at 0: INTEGER
530traverse_sequence_of:"30050203123456":0xff:0x02:0:0:"":RET_TRAVERSE_STOP
531
532Traverse SEQUENCE of INTEGER, stop at 0: INTEGER, NULL
533traverse_sequence_of:"300702031234560500":0xff:0x02:0:0:"":RET_TRAVERSE_STOP
534
535Traverse SEQUENCE of INTEGER, stop at 1: INTEGER, NULL
536traverse_sequence_of:"300702031234560500":0xff:0x02:0:0:"4,0x02,3":MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
537
538Traverse SEQUENCE of INTEGER, stop at 1: INTEGER, INTEGER
539traverse_sequence_of:"30080203123456020178":0xff:0x02:0:0:"4,0x02,3":RET_TRAVERSE_STOP
540
541AlgorithmIdentifier, no params
542get_alg:"300506034f4944":4:3:0:0:0:7:0
543
544AlgorithmIdentifier, no params, trailing garbage
545get_alg:"300506034f49447e":4:3:0:0:0:7:0
546
547AlgorithmIdentifier, null params
548get_alg:"300706034f49440500":4:3:0x05:9:0:9:0
549
550AlgorithmIdentifier, null params, trailing garbage
551get_alg:"300706034f494405007e":4:3:0x05:9:0:9:0
552
553AlgorithmIdentifier, OCTET STRING params
554get_alg:"300c06034f494404056162636465":4:3:0x04:9:5:14:0
555
556AlgorithmIdentifier, truncated before OID
557get_alg:"3000":4:3:0:0:0:2:MBEDTLS_ERR_ASN1_OUT_OF_DATA
558
559AlgorithmIdentifier, truncated in OID after tag
560get_alg:"300106":0:0:0:0:0:3:MBEDTLS_ERR_ASN1_OUT_OF_DATA
561
562AlgorithmIdentifier, truncated in OID after length
563get_alg:"30020603":4:3:0:0:0:4:MBEDTLS_ERR_ASN1_OUT_OF_DATA
564
565AlgorithmIdentifier, truncated inside OID content
566get_alg:"300406034f49":4:3:0:0:0:6:MBEDTLS_ERR_ASN1_OUT_OF_DATA
567
568AlgorithmIdentifier, truncated in params after tag
569get_alg:"300606034f494404":4:3:0x04:0:0:8:MBEDTLS_ERR_ASN1_OUT_OF_DATA
570
571AlgorithmIdentifier, truncated in params after length
572get_alg:"300706034f49440405":4:3:0x04:9:0:9:MBEDTLS_ERR_ASN1_OUT_OF_DATA
573
574AlgorithmIdentifier, truncated inside params content
575get_alg:"300806034f4944040561":4:3:0x04:9:5:10:MBEDTLS_ERR_ASN1_OUT_OF_DATA
576
577Not an AlgorithmIdentifier (not a SEQUENCE)
578get_alg:"310506034f4944":0:0:0:0:0:0:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
579
580Not an AlgorithmIdentifier (empty SEQUENCE)
581get_alg:"3000":0:0:0:0:0:0:MBEDTLS_ERR_ASN1_OUT_OF_DATA
582
583Not an AlgorithmIdentifier (not an OID)
584get_alg:"3006050006034f4944":0:0:0:0:0:0:MBEDTLS_ERR_ASN1_UNEXPECTED_TAG
585
586Not an AlgorithmIdentifier (too many elements)
587get_alg:"300f06034f494406034f494406034f4944":0:0:0:0:0:0:MBEDTLS_ERR_ASN1_LENGTH_MISMATCH
588
589Find named data: not found
590find_named_data:"414141":"424242":"434343":"444444":"7f7f7f":0:4
591
592Find named data: empty haystack
593find_named_data:"414141":"424242":"434343":"444444":"7f7f7f":4:4
594
595Find named data: first
596find_named_data:"414141":"424242":"434343":"444444":"414141":0:0
597
598Find named data: last
599find_named_data:"414141":"424242":"434343":"444444":"444444":0:3
600
601Find named data: skip suffix
602find_named_data:"41414141":"414141":"434343":"444444":"414141":0:1
603
604Find named data: skip prefix
605find_named_data:"4141":"414141":"434343":"444444":"414141":0:1
606
607Find named data: first match
608find_named_data:"414141":"414141":"434343":"444444":"414141":0:0
609
610Free named data: null pointer
611free_named_data_null:
612
613Free named data: all null
614free_named_data:0:0:0
615
616Free named data: with oid
617free_named_data:1:0:0
618
619Free named data: with val
620free_named_data:0:1:0
621
622Free named data: with next
623free_named_data:0:0:1
624
625Free named data list (empty)
626free_named_data_list:0
627
628Free named data list (1)
629free_named_data_list:1
630
631Free named data list (2)
632free_named_data_list:2
633