summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ieee1609dot2.c
blob: 2c06c97e90f3fd771f63a9769358f1baf6faeedf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
/* Do not modify this file. Changes will be overwritten.                      */
/* Generated automatically by the ASN.1 to Wireshark dissector compiler       */
/* packet-ieee1609dot2.c                                                      */
/* asn2wrs.py -L -p ieee1609dot2 -c ./ieee1609dot2.cnf -s ./packet-ieee1609dot2-template -D . -O ../.. IEEE1609dot2BaseTypes.asn Ieee1609Dot2CrlBaseTypes.asn Ieee1609Dot2Crl.asn Ieee1609Dot2.asn IEEE1609dot12.asn */

/* packet-IEEE1609dot2.c
 * Routines for IEEE 1609.2
 * Copyright 2018, Anders Broman <anders.broman@ericsson.com>
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0-or-later
 */

/* Also contains IEEE std 1609.12
 * section 4.1.3 PSID allocations
 */

#include "config.h"

#include <stdlib.h>
#include <time.h>

#include <epan/packet.h>
#include <epan/conversation.h>
#include <epan/oids.h>
#include <epan/asn1.h>
#include <epan/proto_data.h>

#include "packet-oer.h"
#include "packet-ieee1609dot2.h"

#define PNAME  "IEEE1609dot2"
#define PSNAME "IEEE1609dot2"
#define PFNAME "ieee1609dot2"

void proto_register_ieee1609dot2(void);
void proto_reg_handoff_ieee1609dot2(void);

/* Initialize the protocol and registered fields */
int proto_ieee1609dot2 = -1;
dissector_handle_t proto_ieee1609dot2_handle = NULL;
static int hf_ieee1609dot2_SecuredCrl_PDU = -1;   /* SecuredCrl */
static int hf_ieee1609dot2_Ieee1609Dot2Data_PDU = -1;  /* Ieee1609Dot2Data */
static int hf_ieee1609dot2_SequenceOfUint8_item = -1;  /* Uint8 */
static int hf_ieee1609dot2_SequenceOfUint16_item = -1;  /* Uint16 */
static int hf_ieee1609dot2_SequenceOfHashedId3_item = -1;  /* HashedId3 */
static int hf_ieee1609dot2_start = -1;            /* Time32 */
static int hf_ieee1609dot2_duration = -1;         /* Duration */
static int hf_ieee1609dot2_microseconds = -1;     /* Uint16 */
static int hf_ieee1609dot2_milliseconds = -1;     /* Uint16 */
static int hf_ieee1609dot2_seconds = -1;          /* Uint16 */
static int hf_ieee1609dot2_minutes = -1;          /* Uint16 */
static int hf_ieee1609dot2_hours = -1;            /* Uint16 */
static int hf_ieee1609dot2_sixtyHours = -1;       /* Uint16 */
static int hf_ieee1609dot2_years = -1;            /* Uint16 */
static int hf_ieee1609dot2_circularRegion = -1;   /* CircularRegion */
static int hf_ieee1609dot2_rectangularRegion = -1;  /* SequenceOfRectangularRegion */
static int hf_ieee1609dot2_polygonalRegion = -1;  /* PolygonalRegion */
static int hf_ieee1609dot2_identifiedRegion = -1;  /* SequenceOfIdentifiedRegion */
static int hf_ieee1609dot2_center = -1;           /* TwoDLocation */
static int hf_ieee1609dot2_radius = -1;           /* Uint16 */
static int hf_ieee1609dot2_northWest = -1;        /* TwoDLocation */
static int hf_ieee1609dot2_southEast = -1;        /* TwoDLocation */
static int hf_ieee1609dot2_SequenceOfRectangularRegion_item = -1;  /* RectangularRegion */
static int hf_ieee1609dot2_PolygonalRegion_item = -1;  /* TwoDLocation */
static int hf_ieee1609dot2_latitude = -1;         /* Latitude */
static int hf_ieee1609dot2_longitude = -1;        /* Longitude */
static int hf_ieee1609dot2_countryOnly = -1;      /* UnCountryId */
static int hf_ieee1609dot2_countryAndRegions = -1;  /* CountryAndRegions */
static int hf_ieee1609dot2_countryAndSubregions = -1;  /* CountryAndSubregions */
static int hf_ieee1609dot2_SequenceOfIdentifiedRegion_item = -1;  /* IdentifiedRegion */
static int hf_ieee1609dot2_regions = -1;          /* SequenceOfUint8 */
static int hf_ieee1609dot2_regionAndSubregions = -1;  /* SequenceOfRegionAndSubregions */
static int hf_ieee1609dot2_rasRegion = -1;        /* Uint8 */
static int hf_ieee1609dot2_subregions = -1;       /* SequenceOfUint16 */
static int hf_ieee1609dot2_SequenceOfRegionAndSubregions_item = -1;  /* RegionAndSubregions */
static int hf_ieee1609dot2_elevation = -1;        /* Elevation */
static int hf_ieee1609dot2_ecdsaNistP256Signature = -1;  /* EcdsaP256Signature */
static int hf_ieee1609dot2_ecdsaBrainpoolP256r1Signature = -1;  /* EcdsaP256Signature */
static int hf_ieee1609dot2_ecdsaBrainpoolP384r1Signature = -1;  /* EcdsaP384Signature */
static int hf_ieee1609dot2_ecdsaNistP384Signature = -1;  /* EcdsaP384Signature */
static int hf_ieee1609dot2_sm2Signature = -1;     /* EcsigP256Signature */
static int hf_ieee1609dot2_rSig = -1;             /* EccP256CurvePoint */
static int hf_ieee1609dot2_sSig = -1;             /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_ecdsap384RSig = -1;    /* EccP384CurvePoint */
static int hf_ieee1609dot2_ecdsap384SSig = -1;    /* OCTET_STRING_SIZE_48 */
static int hf_ieee1609dot2_rSig_01 = -1;          /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_x_only = -1;           /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_fill = -1;             /* NULL */
static int hf_ieee1609dot2_compressed_y_0 = -1;   /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_compressed_y_1 = -1;   /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_uncompressedP256 = -1;  /* T_uncompressedP256 */
static int hf_ieee1609dot2_x = -1;                /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_y = -1;                /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_eccp384cpXOnly = -1;   /* OCTET_STRING_SIZE_48 */
static int hf_ieee1609dot2_eccp384cpCompressed_y_0 = -1;  /* OCTET_STRING_SIZE_48 */
static int hf_ieee1609dot2_eccp384cpCompressed_y_1 = -1;  /* OCTET_STRING_SIZE_48 */
static int hf_ieee1609dot2_uncompressedP384 = -1;  /* T_uncompressedP384 */
static int hf_ieee1609dot2_eccp384cpX = -1;       /* OCTET_STRING_SIZE_48 */
static int hf_ieee1609dot2_eccp384cpY = -1;       /* OCTET_STRING_SIZE_48 */
static int hf_ieee1609dot2_v = -1;                /* EccP256CurvePoint */
static int hf_ieee1609dot2_c = -1;                /* OCTET_STRING_SIZE_16 */
static int hf_ieee1609dot2_t = -1;                /* OCTET_STRING_SIZE_16 */
static int hf_ieee1609dot2_t_01 = -1;             /* OCTET_STRING_SIZE_32 */
static int hf_ieee1609dot2_public = -1;           /* PublicEncryptionKey */
static int hf_ieee1609dot2_symmetric = -1;        /* SymmetricEncryptionKey */
static int hf_ieee1609dot2_supportedSymmAlg = -1;  /* SymmAlgorithm */
static int hf_ieee1609dot2_publicKey = -1;        /* BasePublicEncryptionKey */
static int hf_ieee1609dot2_eciesNistP256 = -1;    /* EccP256CurvePoint */
static int hf_ieee1609dot2_eciesBrainpoolP256r1 = -1;  /* EccP256CurvePoint */
static int hf_ieee1609dot2_ecencSm2 = -1;         /* EccP256CurvePoint */
static int hf_ieee1609dot2_ecdsaNistP256 = -1;    /* EccP256CurvePoint */
static int hf_ieee1609dot2_ecdsaBrainpoolP256r1 = -1;  /* EccP256CurvePoint */
static int hf_ieee1609dot2_ecdsaBrainpoolP384r1 = -1;  /* EccP384CurvePoint */
static int hf_ieee1609dot2_ecdsaNistP384 = -1;    /* EccP384CurvePoint */
static int hf_ieee1609dot2_ecsigSm2 = -1;         /* EccP256CurvePoint */
static int hf_ieee1609dot2_aes128Ccm = -1;        /* OCTET_STRING_SIZE_16 */
static int hf_ieee1609dot2_sm4Ccm = -1;           /* OCTET_STRING_SIZE_16 */
static int hf_ieee1609dot2_psPsid = -1;           /* T_psPsid */
static int hf_ieee1609dot2_ssp = -1;              /* ServiceSpecificPermissions */
static int hf_ieee1609dot2_SequenceOfPsidSsp_item = -1;  /* PsidSsp */
static int hf_ieee1609dot2_opaque = -1;           /* T_opaque */
static int hf_ieee1609dot2_bitmapSsp = -1;        /* BitmapSsp */
static int hf_ieee1609dot2_psid = -1;             /* Psid */
static int hf_ieee1609dot2_sspRange = -1;         /* SspRange */
static int hf_ieee1609dot2_SequenceOfPsidSspRange_item = -1;  /* PsidSspRange */
static int hf_ieee1609dot2_srRange = -1;          /* SequenceOfOctetString */
static int hf_ieee1609dot2_all = -1;              /* NULL */
static int hf_ieee1609dot2_bitmapSspRange = -1;   /* BitmapSspRange */
static int hf_ieee1609dot2_sspValue = -1;         /* OCTET_STRING_SIZE_1_32 */
static int hf_ieee1609dot2_sspBitmask = -1;       /* OCTET_STRING_SIZE_1_32 */
static int hf_ieee1609dot2_SequenceOfOctetString_item = -1;  /* OCTET_STRING_SIZE_0_MAX */
static int hf_ieee1609dot2_jValue = -1;           /* OCTET_STRING_SIZE_4 */
static int hf_ieee1609dot2_value = -1;            /* OCTET_STRING_SIZE_9 */
static int hf_ieee1609dot2_SequenceOfLinkageSeed_item = -1;  /* LinkageSeed */
static int hf_ieee1609dot2_version = -1;          /* Uint8 */
static int hf_ieee1609dot2_crlSeries = -1;        /* CrlSeries */
static int hf_ieee1609dot2_crlCraca = -1;         /* HashedId8 */
static int hf_ieee1609dot2_issueDate = -1;        /* Time32 */
static int hf_ieee1609dot2_nextCrl = -1;          /* Time32 */
static int hf_ieee1609dot2_priorityInfo = -1;     /* CrlPriorityInfo */
static int hf_ieee1609dot2_typeSpecific = -1;     /* TypeSpecificCrlContents */
static int hf_ieee1609dot2_priority = -1;         /* Uint8 */
static int hf_ieee1609dot2_fullHashCrl = -1;      /* ToBeSignedHashIdCrl */
static int hf_ieee1609dot2_deltaHashCrl = -1;     /* ToBeSignedHashIdCrl */
static int hf_ieee1609dot2_fullLinkedCrl = -1;    /* ToBeSignedLinkageValueCrl */
static int hf_ieee1609dot2_deltaLinkedCrl = -1;   /* ToBeSignedLinkageValueCrl */
static int hf_ieee1609dot2_fullLinkedCrlWithAlg = -1;  /* ToBeSignedLinkageValueCrlWithAlgIdentifier */
static int hf_ieee1609dot2_deltaLinkedCrlWithAlg = -1;  /* ToBeSignedLinkageValueCrlWithAlgIdentifier */
static int hf_ieee1609dot2_crlSerial = -1;        /* Uint32 */
static int hf_ieee1609dot2_entries = -1;          /* SequenceOfHashBasedRevocationInfo */
static int hf_ieee1609dot2_SequenceOfHashBasedRevocationInfo_item = -1;  /* HashBasedRevocationInfo */
static int hf_ieee1609dot2_id = -1;               /* HashedId10 */
static int hf_ieee1609dot2_expiry = -1;           /* Time32 */
static int hf_ieee1609dot2_iRev = -1;             /* IValue */
static int hf_ieee1609dot2_indexWithinI = -1;     /* Uint8 */
static int hf_ieee1609dot2_individual = -1;       /* SequenceOfJMaxGroup */
static int hf_ieee1609dot2_groups = -1;           /* SequenceOfGroupCrlEntry */
static int hf_ieee1609dot2_groupsSingleSeed = -1;  /* SequenceOfGroupSingleSeedCrlEntry */
static int hf_ieee1609dot2_SequenceOfJMaxGroup_item = -1;  /* JMaxGroup */
static int hf_ieee1609dot2_jmax = -1;             /* Uint8 */
static int hf_ieee1609dot2_contents = -1;         /* SequenceOfLAGroup */
static int hf_ieee1609dot2_SequenceOfLAGroup_item = -1;  /* LAGroup */
static int hf_ieee1609dot2_la1Id = -1;            /* LaId */
static int hf_ieee1609dot2_la2Id = -1;            /* LaId */
static int hf_ieee1609dot2_contents_01 = -1;      /* SequenceOfIMaxGroup */
static int hf_ieee1609dot2_SequenceOfIMaxGroup_item = -1;  /* IMaxGroup */
static int hf_ieee1609dot2_iMax = -1;             /* Uint16 */
static int hf_ieee1609dot2_contents_02 = -1;      /* SequenceOfIndividualRevocation */
static int hf_ieee1609dot2_singleSeed = -1;       /* SequenceOfLinkageSeed */
static int hf_ieee1609dot2_SequenceOfIndividualRevocation_item = -1;  /* IndividualRevocation */
static int hf_ieee1609dot2_linkageSeed1 = -1;     /* LinkageSeed */
static int hf_ieee1609dot2_linkageSeed2 = -1;     /* LinkageSeed */
static int hf_ieee1609dot2_SequenceOfGroupCrlEntry_item = -1;  /* GroupCrlEntry */
static int hf_ieee1609dot2_seedEvolution = -1;    /* SeedEvolutionFunctionIdentifier */
static int hf_ieee1609dot2_lvGeneration = -1;     /* LvGenerationFunctionIdentifier */
static int hf_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry_item = -1;  /* GroupSingleSeedCrlEntry */
static int hf_ieee1609dot2_laId = -1;             /* LaId */
static int hf_ieee1609dot2_linkageSeed = -1;      /* LinkageSeed */
static int hf_ieee1609dot2_content = -1;          /* SecuredCrlContent */
static int hf_ieee1609dot2_signedData = -1;       /* CrlSignedData */
static int hf_ieee1609dot2_tbsData = -1;          /* CrlToBeSignedData */
static int hf_ieee1609dot2_payload = -1;          /* CrlSignedDataPayload */
static int hf_ieee1609dot2_headerInfo = -1;       /* HeaderInfo */
static int hf_ieee1609dot2_data = -1;             /* Ieee1609Dot2CrlData */
static int hf_ieee1609dot2_content_01 = -1;       /* Ieee1609Dot2CrlContent */
static int hf_ieee1609dot2_unsecuredData = -1;    /* CrlContents */
static int hf_ieee1609dot2_protocolVersion = -1;  /* Uint8 */
static int hf_ieee1609dot2_content_02 = -1;       /* Ieee1609Dot2Content */
static int hf_ieee1609dot2_unsecuredData_01 = -1;  /* T_unsecuredData */
static int hf_ieee1609dot2_signedData_01 = -1;    /* SignedData */
static int hf_ieee1609dot2_encryptedData = -1;    /* EncryptedData */
static int hf_ieee1609dot2_signedCertificateRequest = -1;  /* Opaque */
static int hf_ieee1609dot2_signedX509CertificateRequest = -1;  /* Opaque */
static int hf_ieee1609dot2_hashId = -1;           /* HashAlgorithm */
static int hf_ieee1609dot2_tbsData_01 = -1;       /* ToBeSignedData */
static int hf_ieee1609dot2_signer = -1;           /* SignerIdentifier */
static int hf_ieee1609dot2_signature = -1;        /* Signature */
static int hf_ieee1609dot2_payload_01 = -1;       /* SignedDataPayload */
static int hf_ieee1609dot2_data_01 = -1;          /* Ieee1609Dot2Data */
static int hf_ieee1609dot2_extDataHash = -1;      /* HashedData */
static int hf_ieee1609dot2_omitted = -1;          /* NULL */
static int hf_ieee1609dot2_sha256HashedData = -1;  /* HashedId32 */
static int hf_ieee1609dot2_sha384HashedData = -1;  /* HashedId48 */
static int hf_ieee1609dot2_sm3HashedData = -1;    /* HashedId32 */
static int hf_ieee1609dot2_hiPsid = -1;           /* T_hiPsid */
static int hf_ieee1609dot2_generationTime = -1;   /* Time64 */
static int hf_ieee1609dot2_expiryTime = -1;       /* Time64 */
static int hf_ieee1609dot2_generationLocation = -1;  /* ThreeDLocation */
static int hf_ieee1609dot2_p2pcdLearningRequest = -1;  /* HashedId3 */
static int hf_ieee1609dot2_missingCrlIdentifier = -1;  /* MissingCrlIdentifier */
static int hf_ieee1609dot2_encryptionKey = -1;    /* EncryptionKey */
static int hf_ieee1609dot2_inlineP2pcdRequest = -1;  /* SequenceOfHashedId3 */
static int hf_ieee1609dot2_requestedCertificate = -1;  /* Certificate */
static int hf_ieee1609dot2_pduFunctionalType = -1;  /* PduFunctionalType */
static int hf_ieee1609dot2_contributedExtensions = -1;  /* ContributedExtensionBlocks */
static int hf_ieee1609dot2_cracaId = -1;          /* HashedId3 */
static int hf_ieee1609dot2_ContributedExtensionBlocks_item = -1;  /* ContributedExtensionBlock */
static int hf_ieee1609dot2_contributorId = -1;    /* HeaderInfoContributorId */
static int hf_ieee1609dot2_extns = -1;            /* T_extns */
static int hf_ieee1609dot2_extns_item = -1;       /* T_extns_item */
static int hf_ieee1609dot2_digest = -1;           /* HashedId8 */
static int hf_ieee1609dot2_certificate = -1;      /* SequenceOfCertificate */
static int hf_ieee1609dot2_siSelf = -1;           /* NULL */
static int hf_ieee1609dot2_recipients = -1;       /* SequenceOfRecipientInfo */
static int hf_ieee1609dot2_ciphertext = -1;       /* SymmetricCiphertext */
static int hf_ieee1609dot2_pskRecipInfo = -1;     /* PreSharedKeyRecipientInfo */
static int hf_ieee1609dot2_symmRecipInfo = -1;    /* SymmRecipientInfo */
static int hf_ieee1609dot2_certRecipInfo = -1;    /* PKRecipientInfo */
static int hf_ieee1609dot2_signedDataRecipInfo = -1;  /* PKRecipientInfo */
static int hf_ieee1609dot2_rekRecipInfo = -1;     /* PKRecipientInfo */
static int hf_ieee1609dot2_SequenceOfRecipientInfo_item = -1;  /* RecipientInfo */
static int hf_ieee1609dot2_recipientId = -1;      /* HashedId8 */
static int hf_ieee1609dot2_sriEncKey = -1;        /* SymmetricCiphertext */
static int hf_ieee1609dot2_encKey = -1;           /* EncryptedDataEncryptionKey */
static int hf_ieee1609dot2_edeEciesNistP256 = -1;  /* EciesP256EncryptedKey */
static int hf_ieee1609dot2_edekEciesBrainpoolP256r1 = -1;  /* EciesP256EncryptedKey */
static int hf_ieee1609dot2_ecencSm2256 = -1;      /* EcencP256EncryptedKey */
static int hf_ieee1609dot2_aes128ccm = -1;        /* One28BitCcmCiphertext */
static int hf_ieee1609dot2_sm4Ccm_01 = -1;        /* One28BitCcmCiphertext */
static int hf_ieee1609dot2_nonce = -1;            /* OCTET_STRING_SIZE_12 */
static int hf_ieee1609dot2_ccmCiphertext = -1;    /* Opaque */
static int hf_ieee1609dot2_SequenceOfCertificate_item = -1;  /* Certificate */
static int hf_ieee1609dot2_type = -1;             /* CertificateType */
static int hf_ieee1609dot2_issuer = -1;           /* IssuerIdentifier */
static int hf_ieee1609dot2_toBeSigned = -1;       /* ToBeSignedCertificate */
static int hf_ieee1609dot2_sha256AndDigest = -1;  /* HashedId8 */
static int hf_ieee1609dot2_iiSelf = -1;           /* HashAlgorithm */
static int hf_ieee1609dot2_sha384AndDigest = -1;  /* HashedId8 */
static int hf_ieee1609dot2_sm3AndDigest = -1;     /* HashedId8 */
static int hf_ieee1609dot2_id_01 = -1;            /* CertificateId */
static int hf_ieee1609dot2_validityPeriod = -1;   /* ValidityPeriod */
static int hf_ieee1609dot2_region = -1;           /* GeographicRegion */
static int hf_ieee1609dot2_assuranceLevel = -1;   /* SubjectAssurance */
static int hf_ieee1609dot2_appPermissions = -1;   /* SequenceOfPsidSsp */
static int hf_ieee1609dot2_certIssuePermissions = -1;  /* SequenceOfPsidGroupPermissions */
static int hf_ieee1609dot2_certRequestPermissions = -1;  /* SequenceOfPsidGroupPermissions */
static int hf_ieee1609dot2_canRequestRollover = -1;  /* NULL */
static int hf_ieee1609dot2_tbscEncryptionKey = -1;  /* PublicEncryptionKey */
static int hf_ieee1609dot2_verifyKeyIndicator = -1;  /* VerificationKeyIndicator */
static int hf_ieee1609dot2_flags = -1;            /* T_flags */
static int hf_ieee1609dot2_appExtensions = -1;    /* SequenceOfAppExtensions */
static int hf_ieee1609dot2_certIssueExtensions = -1;  /* SequenceOfCertIssueExtensions */
static int hf_ieee1609dot2_certRequestExtension = -1;  /* SequenceOfCertRequestExtensions */
static int hf_ieee1609dot2_linkageData = -1;      /* LinkageData */
static int hf_ieee1609dot2_name = -1;             /* Hostname */
static int hf_ieee1609dot2_binaryId = -1;         /* OCTET_STRING_SIZE_1_64 */
static int hf_ieee1609dot2_none = -1;             /* NULL */
static int hf_ieee1609dot2_iCert = -1;            /* IValue */
static int hf_ieee1609dot2_linkage_value = -1;    /* LinkageValue */
static int hf_ieee1609dot2_group_linkage_value = -1;  /* GroupLinkageValue */
static int hf_ieee1609dot2_subjectPermissions = -1;  /* SubjectPermissions */
static int hf_ieee1609dot2_minChainLength = -1;   /* INTEGER */
static int hf_ieee1609dot2_chainLengthRange = -1;  /* INTEGER */
static int hf_ieee1609dot2_eeType = -1;           /* EndEntityType */
static int hf_ieee1609dot2_SequenceOfPsidGroupPermissions_item = -1;  /* PsidGroupPermissions */
static int hf_ieee1609dot2_explicit = -1;         /* SequenceOfPsidSspRange */
static int hf_ieee1609dot2_verificationKey = -1;  /* PublicVerificationKey */
static int hf_ieee1609dot2_reconstructionValue = -1;  /* EccP256CurvePoint */
static int hf_ieee1609dot2_SequenceOfAppExtensions_item = -1;  /* AppExtension */
static int hf_ieee1609dot2_id_02 = -1;            /* ExtId */
static int hf_ieee1609dot2_content_03 = -1;       /* T_content */
static int hf_ieee1609dot2_SequenceOfCertIssueExtensions_item = -1;  /* CertIssueExtension */
static int hf_ieee1609dot2_permissions = -1;      /* T_permissions */
static int hf_ieee1609dot2_specific = -1;         /* T_specific */
static int hf_ieee1609dot2_SequenceOfCertRequestExtensions_item = -1;  /* CertRequestExtension */
static int hf_ieee1609dot2_permissions_01 = -1;   /* T_permissions_01 */
static int hf_ieee1609dot2_content_04 = -1;       /* T_content_01 */
/* named bits */
static int hf_ieee1609dot2_T_flags_usesCubk = -1;
static int hf_ieee1609dot2_EndEntityType_app = -1;
static int hf_ieee1609dot2_EndEntityType_enrol = -1;

/* Initialize the subtree pointers */
static int ett_ieee1609dot2_ssp = -1;
static gint ett_ieee1609dot2_SequenceOfUint8 = -1;
static gint ett_ieee1609dot2_SequenceOfUint16 = -1;
static gint ett_ieee1609dot2_SequenceOfHashedId3 = -1;
static gint ett_ieee1609dot2_ValidityPeriod = -1;
static gint ett_ieee1609dot2_Duration = -1;
static gint ett_ieee1609dot2_GeographicRegion = -1;
static gint ett_ieee1609dot2_CircularRegion = -1;
static gint ett_ieee1609dot2_RectangularRegion = -1;
static gint ett_ieee1609dot2_SequenceOfRectangularRegion = -1;
static gint ett_ieee1609dot2_PolygonalRegion = -1;
static gint ett_ieee1609dot2_TwoDLocation = -1;
static gint ett_ieee1609dot2_IdentifiedRegion = -1;
static gint ett_ieee1609dot2_SequenceOfIdentifiedRegion = -1;
static gint ett_ieee1609dot2_CountryAndRegions = -1;
static gint ett_ieee1609dot2_CountryAndSubregions = -1;
static gint ett_ieee1609dot2_RegionAndSubregions = -1;
static gint ett_ieee1609dot2_SequenceOfRegionAndSubregions = -1;
static gint ett_ieee1609dot2_ThreeDLocation = -1;
static gint ett_ieee1609dot2_Signature = -1;
static gint ett_ieee1609dot2_EcdsaP256Signature = -1;
static gint ett_ieee1609dot2_EcdsaP384Signature = -1;
static gint ett_ieee1609dot2_EcsigP256Signature = -1;
static gint ett_ieee1609dot2_EccP256CurvePoint = -1;
static gint ett_ieee1609dot2_T_uncompressedP256 = -1;
static gint ett_ieee1609dot2_EccP384CurvePoint = -1;
static gint ett_ieee1609dot2_T_uncompressedP384 = -1;
static gint ett_ieee1609dot2_EciesP256EncryptedKey = -1;
static gint ett_ieee1609dot2_EcencP256EncryptedKey = -1;
static gint ett_ieee1609dot2_EncryptionKey = -1;
static gint ett_ieee1609dot2_PublicEncryptionKey = -1;
static gint ett_ieee1609dot2_BasePublicEncryptionKey = -1;
static gint ett_ieee1609dot2_PublicVerificationKey = -1;
static gint ett_ieee1609dot2_SymmetricEncryptionKey = -1;
static gint ett_ieee1609dot2_PsidSsp = -1;
static gint ett_ieee1609dot2_SequenceOfPsidSsp = -1;
static gint ett_ieee1609dot2_ServiceSpecificPermissions = -1;
static gint ett_ieee1609dot2_PsidSspRange = -1;
static gint ett_ieee1609dot2_SequenceOfPsidSspRange = -1;
static gint ett_ieee1609dot2_SspRange = -1;
static gint ett_ieee1609dot2_BitmapSspRange = -1;
static gint ett_ieee1609dot2_SequenceOfOctetString = -1;
static gint ett_ieee1609dot2_GroupLinkageValue = -1;
static gint ett_ieee1609dot2_SequenceOfLinkageSeed = -1;
static gint ett_ieee1609dot2_CrlContents = -1;
static gint ett_ieee1609dot2_CrlPriorityInfo = -1;
static gint ett_ieee1609dot2_TypeSpecificCrlContents = -1;
static gint ett_ieee1609dot2_ToBeSignedHashIdCrl = -1;
static gint ett_ieee1609dot2_SequenceOfHashBasedRevocationInfo = -1;
static gint ett_ieee1609dot2_HashBasedRevocationInfo = -1;
static gint ett_ieee1609dot2_ToBeSignedLinkageValueCrl = -1;
static gint ett_ieee1609dot2_SequenceOfJMaxGroup = -1;
static gint ett_ieee1609dot2_JMaxGroup = -1;
static gint ett_ieee1609dot2_SequenceOfLAGroup = -1;
static gint ett_ieee1609dot2_LAGroup = -1;
static gint ett_ieee1609dot2_SequenceOfIMaxGroup = -1;
static gint ett_ieee1609dot2_IMaxGroup = -1;
static gint ett_ieee1609dot2_SequenceOfIndividualRevocation = -1;
static gint ett_ieee1609dot2_IndividualRevocation = -1;
static gint ett_ieee1609dot2_SequenceOfGroupCrlEntry = -1;
static gint ett_ieee1609dot2_GroupCrlEntry = -1;
static gint ett_ieee1609dot2_ToBeSignedLinkageValueCrlWithAlgIdentifier = -1;
static gint ett_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry = -1;
static gint ett_ieee1609dot2_GroupSingleSeedCrlEntry = -1;
static gint ett_ieee1609dot2_SecuredCrl = -1;
static gint ett_ieee1609dot2_SecuredCrlContent = -1;
static gint ett_ieee1609dot2_CrlSignedData = -1;
static gint ett_ieee1609dot2_CrlToBeSignedData = -1;
static gint ett_ieee1609dot2_CrlSignedDataPayload = -1;
static gint ett_ieee1609dot2_Ieee1609Dot2CrlData = -1;
static gint ett_ieee1609dot2_Ieee1609Dot2CrlContent = -1;
static gint ett_ieee1609dot2_Ieee1609Dot2Data = -1;
static gint ett_ieee1609dot2_Ieee1609Dot2Content = -1;
static gint ett_ieee1609dot2_SignedData = -1;
static gint ett_ieee1609dot2_ToBeSignedData = -1;
static gint ett_ieee1609dot2_SignedDataPayload = -1;
static gint ett_ieee1609dot2_HashedData = -1;
static gint ett_ieee1609dot2_HeaderInfo = -1;
static gint ett_ieee1609dot2_MissingCrlIdentifier = -1;
static gint ett_ieee1609dot2_ContributedExtensionBlocks = -1;
static gint ett_ieee1609dot2_ContributedExtensionBlock = -1;
static gint ett_ieee1609dot2_T_extns = -1;
static gint ett_ieee1609dot2_SignerIdentifier = -1;
static gint ett_ieee1609dot2_EncryptedData = -1;
static gint ett_ieee1609dot2_RecipientInfo = -1;
static gint ett_ieee1609dot2_SequenceOfRecipientInfo = -1;
static gint ett_ieee1609dot2_SymmRecipientInfo = -1;
static gint ett_ieee1609dot2_PKRecipientInfo = -1;
static gint ett_ieee1609dot2_EncryptedDataEncryptionKey = -1;
static gint ett_ieee1609dot2_SymmetricCiphertext = -1;
static gint ett_ieee1609dot2_One28BitCcmCiphertext = -1;
static gint ett_ieee1609dot2_SequenceOfCertificate = -1;
static gint ett_ieee1609dot2_CertificateBase = -1;
static gint ett_ieee1609dot2_IssuerIdentifier = -1;
static gint ett_ieee1609dot2_ToBeSignedCertificate = -1;
static gint ett_ieee1609dot2_T_flags = -1;
static gint ett_ieee1609dot2_CertificateId = -1;
static gint ett_ieee1609dot2_LinkageData = -1;
static gint ett_ieee1609dot2_EndEntityType = -1;
static gint ett_ieee1609dot2_PsidGroupPermissions = -1;
static gint ett_ieee1609dot2_SequenceOfPsidGroupPermissions = -1;
static gint ett_ieee1609dot2_SubjectPermissions = -1;
static gint ett_ieee1609dot2_VerificationKeyIndicator = -1;
static gint ett_ieee1609dot2_SequenceOfAppExtensions = -1;
static gint ett_ieee1609dot2_AppExtension = -1;
static gint ett_ieee1609dot2_SequenceOfCertIssueExtensions = -1;
static gint ett_ieee1609dot2_CertIssueExtension = -1;
static gint ett_ieee1609dot2_T_permissions = -1;
static gint ett_ieee1609dot2_SequenceOfCertRequestExtensions = -1;
static gint ett_ieee1609dot2_CertRequestExtension = -1;
static gint ett_ieee1609dot2_T_permissions_01 = -1;

static dissector_table_t unsecured_data_subdissector_table;
static dissector_table_t ssp_subdissector_table;

typedef struct ieee1609_private_data {
  tvbuff_t *unsecured_data;
  guint64 psidssp; // psid for Service Specific Permissions
} ieee1609_private_data_t;

void
ieee1609dot2_set_next_default_psid(packet_info *pinfo, guint32 psid)
{
  p_add_proto_data(wmem_file_scope(), pinfo, proto_ieee1609dot2, 0, GUINT_TO_POINTER(psid));
}

/*--- Cyclic dependencies ---*/

/* Ieee1609Dot2Data -> Ieee1609Dot2Content -> SignedData -> ToBeSignedData -> SignedDataPayload -> Ieee1609Dot2Data */
static int dissect_ieee1609dot2_Ieee1609Dot2Data(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_);




static int
dissect_ieee1609dot2_Uint8(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            0U, 255U, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_Uint16(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            0U, 65535U, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_Uint32(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            0U, 4294967295U, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_Uint64(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer_64b(tvb, offset, actx, tree, hf_index,
                                                            0U, G_GUINT64_CONSTANT(18446744073709551615), NULL, FALSE);

  return offset;
}


static const oer_sequence_t SequenceOfUint8_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfUint8_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
};

static int
dissect_ieee1609dot2_SequenceOfUint8(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfUint8, SequenceOfUint8_sequence_of);

  return offset;
}


static const oer_sequence_t SequenceOfUint16_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfUint16_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint16 },
};

static int
dissect_ieee1609dot2_SequenceOfUint16(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfUint16, SequenceOfUint16_sequence_of);

  return offset;
}



static int
dissect_ieee1609dot2_Opaque(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       NO_BOUND, NO_BOUND, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_HashedId3(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       3, 3, FALSE, NULL);

  return offset;
}


static const oer_sequence_t SequenceOfHashedId3_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfHashedId3_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId3 },
};

static int
dissect_ieee1609dot2_SequenceOfHashedId3(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfHashedId3, SequenceOfHashedId3_sequence_of);

  return offset;
}



static int
dissect_ieee1609dot2_HashedId8(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       8, 8, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_HashedId10(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       10, 10, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_HashedId32(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       32, 32, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_HashedId48(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       48, 48, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_Time32(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_Uint32(tvb, offset, actx, tree, hf_index);

  return offset;
}



static int
dissect_ieee1609dot2_Time64(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_Uint64(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const value_string ieee1609dot2_Duration_vals[] = {
  {   0, "microseconds" },
  {   1, "milliseconds" },
  {   2, "seconds" },
  {   3, "minutes" },
  {   4, "hours" },
  {   5, "sixtyHours" },
  {   6, "years" },
  { 0, NULL }
};

static const oer_choice_t Duration_choice[] = {
  {   0, &hf_ieee1609dot2_microseconds, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  {   1, &hf_ieee1609dot2_milliseconds, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  {   2, &hf_ieee1609dot2_seconds, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  {   3, &hf_ieee1609dot2_minutes, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  {   4, &hf_ieee1609dot2_hours  , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  {   5, &hf_ieee1609dot2_sixtyHours, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  {   6, &hf_ieee1609dot2_years  , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_Uint16 },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_Duration(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_Duration, Duration_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t ValidityPeriod_sequence[] = {
  { &hf_ieee1609dot2_start  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Time32 },
  { &hf_ieee1609dot2_duration, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Duration },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ValidityPeriod(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ValidityPeriod, ValidityPeriod_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_NinetyDegreeInt(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            -900000000, 900000001U, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_Latitude(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_NinetyDegreeInt(tvb, offset, actx, tree, hf_index);

  return offset;
}



static int
dissect_ieee1609dot2_OneEightyDegreeInt(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            -1799999999, 1800000001U, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_Longitude(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_OneEightyDegreeInt(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const oer_sequence_t TwoDLocation_sequence[] = {
  { &hf_ieee1609dot2_latitude, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Latitude },
  { &hf_ieee1609dot2_longitude, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Longitude },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_TwoDLocation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_TwoDLocation, TwoDLocation_sequence);

  return offset;
}


static const oer_sequence_t CircularRegion_sequence[] = {
  { &hf_ieee1609dot2_center , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_TwoDLocation },
  { &hf_ieee1609dot2_radius , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint16 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CircularRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CircularRegion, CircularRegion_sequence);

  return offset;
}


static const oer_sequence_t RectangularRegion_sequence[] = {
  { &hf_ieee1609dot2_northWest, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_TwoDLocation },
  { &hf_ieee1609dot2_southEast, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_TwoDLocation },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_RectangularRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_RectangularRegion, RectangularRegion_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfRectangularRegion_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfRectangularRegion_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_RectangularRegion },
};

static int
dissect_ieee1609dot2_SequenceOfRectangularRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfRectangularRegion, SequenceOfRectangularRegion_sequence_of);

  return offset;
}


static const oer_sequence_t PolygonalRegion_sequence_of[1] = {
  { &hf_ieee1609dot2_PolygonalRegion_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_TwoDLocation },
};

static int
dissect_ieee1609dot2_PolygonalRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_PolygonalRegion, PolygonalRegion_sequence_of,
                                                  3, NO_BOUND, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_UnCountryId(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_Uint16(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const oer_sequence_t CountryAndRegions_sequence[] = {
  { &hf_ieee1609dot2_countryOnly, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_UnCountryId },
  { &hf_ieee1609dot2_regions, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfUint8 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CountryAndRegions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CountryAndRegions, CountryAndRegions_sequence);

  return offset;
}


static const oer_sequence_t RegionAndSubregions_sequence[] = {
  { &hf_ieee1609dot2_rasRegion, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_subregions, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfUint16 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_RegionAndSubregions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_RegionAndSubregions, RegionAndSubregions_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfRegionAndSubregions_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfRegionAndSubregions_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_RegionAndSubregions },
};

static int
dissect_ieee1609dot2_SequenceOfRegionAndSubregions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfRegionAndSubregions, SequenceOfRegionAndSubregions_sequence_of);

  return offset;
}


static const oer_sequence_t CountryAndSubregions_sequence[] = {
  { &hf_ieee1609dot2_countryOnly, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_UnCountryId },
  { &hf_ieee1609dot2_regionAndSubregions, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfRegionAndSubregions },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CountryAndSubregions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CountryAndSubregions, CountryAndSubregions_sequence);

  return offset;
}


static const value_string ieee1609dot2_IdentifiedRegion_vals[] = {
  {   0, "countryOnly" },
  {   1, "countryAndRegions" },
  {   2, "countryAndSubregions" },
  { 0, NULL }
};

static const oer_choice_t IdentifiedRegion_choice[] = {
  {   0, &hf_ieee1609dot2_countryOnly, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_UnCountryId },
  {   1, &hf_ieee1609dot2_countryAndRegions, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_CountryAndRegions },
  {   2, &hf_ieee1609dot2_countryAndSubregions, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_CountryAndSubregions },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_IdentifiedRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_IdentifiedRegion, IdentifiedRegion_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t SequenceOfIdentifiedRegion_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfIdentifiedRegion_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IdentifiedRegion },
};

static int
dissect_ieee1609dot2_SequenceOfIdentifiedRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfIdentifiedRegion, SequenceOfIdentifiedRegion_sequence_of);

  return offset;
}


static const value_string ieee1609dot2_GeographicRegion_vals[] = {
  {   0, "circularRegion" },
  {   1, "rectangularRegion" },
  {   2, "polygonalRegion" },
  {   3, "identifiedRegion" },
  { 0, NULL }
};

static const oer_choice_t GeographicRegion_choice[] = {
  {   0, &hf_ieee1609dot2_circularRegion, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_CircularRegion },
  {   1, &hf_ieee1609dot2_rectangularRegion, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_SequenceOfRectangularRegion },
  {   2, &hf_ieee1609dot2_polygonalRegion, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_PolygonalRegion },
  {   3, &hf_ieee1609dot2_identifiedRegion, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_SequenceOfIdentifiedRegion },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_GeographicRegion(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_GeographicRegion, GeographicRegion_choice,
                                 NULL);

  return offset;
}



static int
dissect_ieee1609dot2_Elevation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_Uint16(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const oer_sequence_t ThreeDLocation_sequence[] = {
  { &hf_ieee1609dot2_latitude, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Latitude },
  { &hf_ieee1609dot2_longitude, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Longitude },
  { &hf_ieee1609dot2_elevation, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Elevation },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ThreeDLocation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ThreeDLocation, ThreeDLocation_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_32(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       32, 32, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_NULL(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_null(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const oer_sequence_t T_uncompressedP256_sequence[] = {
  { &hf_ieee1609dot2_x      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  { &hf_ieee1609dot2_y      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_T_uncompressedP256(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_T_uncompressedP256, T_uncompressedP256_sequence);

  return offset;
}


static const value_string ieee1609dot2_EccP256CurvePoint_vals[] = {
  {   0, "x-only" },
  {   1, "fill" },
  {   2, "compressed-y-0" },
  {   3, "compressed-y-1" },
  {   4, "uncompressedP256" },
  { 0, NULL }
};

static const oer_choice_t EccP256CurvePoint_choice[] = {
  {   0, &hf_ieee1609dot2_x_only , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  {   1, &hf_ieee1609dot2_fill   , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_NULL },
  {   2, &hf_ieee1609dot2_compressed_y_0, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  {   3, &hf_ieee1609dot2_compressed_y_1, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  {   4, &hf_ieee1609dot2_uncompressedP256, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_T_uncompressedP256 },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_EccP256CurvePoint(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_EccP256CurvePoint, EccP256CurvePoint_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t EcdsaP256Signature_sequence[] = {
  { &hf_ieee1609dot2_rSig   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_EccP256CurvePoint },
  { &hf_ieee1609dot2_sSig   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_EcdsaP256Signature(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_EcdsaP256Signature, EcdsaP256Signature_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_48(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       48, 48, FALSE, NULL);

  return offset;
}


static const oer_sequence_t T_uncompressedP384_sequence[] = {
  { &hf_ieee1609dot2_eccp384cpX, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_48 },
  { &hf_ieee1609dot2_eccp384cpY, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_48 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_T_uncompressedP384(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_T_uncompressedP384, T_uncompressedP384_sequence);

  return offset;
}


static const value_string ieee1609dot2_EccP384CurvePoint_vals[] = {
  {   0, "x-only" },
  {   1, "fill" },
  {   2, "compressed-y-0" },
  {   3, "compressed-y-1" },
  {   4, "uncompressedP384" },
  { 0, NULL }
};

static const oer_choice_t EccP384CurvePoint_choice[] = {
  {   0, &hf_ieee1609dot2_eccp384cpXOnly, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_OCTET_STRING_SIZE_48 },
  {   1, &hf_ieee1609dot2_fill   , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_NULL },
  {   2, &hf_ieee1609dot2_eccp384cpCompressed_y_0, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_OCTET_STRING_SIZE_48 },
  {   3, &hf_ieee1609dot2_eccp384cpCompressed_y_1, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_OCTET_STRING_SIZE_48 },
  {   4, &hf_ieee1609dot2_uncompressedP384, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_T_uncompressedP384 },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_EccP384CurvePoint(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_EccP384CurvePoint, EccP384CurvePoint_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t EcdsaP384Signature_sequence[] = {
  { &hf_ieee1609dot2_ecdsap384RSig, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_EccP384CurvePoint },
  { &hf_ieee1609dot2_ecdsap384SSig, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_48 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_EcdsaP384Signature(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_EcdsaP384Signature, EcdsaP384Signature_sequence);

  return offset;
}


static const oer_sequence_t EcsigP256Signature_sequence[] = {
  { &hf_ieee1609dot2_rSig_01, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  { &hf_ieee1609dot2_sSig   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_EcsigP256Signature(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_EcsigP256Signature, EcsigP256Signature_sequence);

  return offset;
}


static const value_string ieee1609dot2_Signature_vals[] = {
  {   0, "ecdsaNistP256Signature" },
  {   1, "ecdsaBrainpoolP256r1Signature" },
  {   2, "ecdsaBrainpoolP384r1Signature" },
  {   3, "ecdsaNistP384Signature" },
  {   4, "sm2Signature" },
  { 0, NULL }
};

static const oer_choice_t Signature_choice[] = {
  {   0, &hf_ieee1609dot2_ecdsaNistP256Signature, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EcdsaP256Signature },
  {   1, &hf_ieee1609dot2_ecdsaBrainpoolP256r1Signature, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EcdsaP256Signature },
  {   2, &hf_ieee1609dot2_ecdsaBrainpoolP384r1Signature, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EcdsaP384Signature },
  {   3, &hf_ieee1609dot2_ecdsaNistP384Signature, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EcdsaP384Signature },
  {   4, &hf_ieee1609dot2_sm2Signature, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EcsigP256Signature },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_Signature(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_Signature, Signature_choice,
                                 NULL);

  return offset;
}


static const value_string ieee1609dot2_SymmAlgorithm_vals[] = {
  {   0, "aes128Ccm" },
  {   1, "sm4Ccm" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_SymmAlgorithm(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_enumerated(tvb, offset, actx, tree, hf_index,
                                     1, NULL, TRUE, 1, NULL);

  return offset;
}


static const value_string ieee1609dot2_HashAlgorithm_vals[] = {
  {   0, "sha256" },
  {   1, "sha384" },
  {   2, "sm3" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_HashAlgorithm(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_enumerated(tvb, offset, actx, tree, hf_index,
                                     1, NULL, TRUE, 2, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_16(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       16, 16, FALSE, NULL);

  return offset;
}


static const oer_sequence_t EciesP256EncryptedKey_sequence[] = {
  { &hf_ieee1609dot2_v      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_EccP256CurvePoint },
  { &hf_ieee1609dot2_c      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_16 },
  { &hf_ieee1609dot2_t      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_16 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_EciesP256EncryptedKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_EciesP256EncryptedKey, EciesP256EncryptedKey_sequence);

  return offset;
}


static const oer_sequence_t EcencP256EncryptedKey_sequence[] = {
  { &hf_ieee1609dot2_v      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_EccP256CurvePoint },
  { &hf_ieee1609dot2_c      , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_16 },
  { &hf_ieee1609dot2_t_01   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_32 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_EcencP256EncryptedKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_EcencP256EncryptedKey, EcencP256EncryptedKey_sequence);

  return offset;
}


static const value_string ieee1609dot2_BasePublicEncryptionKey_vals[] = {
  {   0, "eciesNistP256" },
  {   1, "eciesBrainpoolP256r1" },
  {   2, "ecencSm2" },
  { 0, NULL }
};

static const oer_choice_t BasePublicEncryptionKey_choice[] = {
  {   0, &hf_ieee1609dot2_eciesNistP256, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EccP256CurvePoint },
  {   1, &hf_ieee1609dot2_eciesBrainpoolP256r1, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EccP256CurvePoint },
  {   2, &hf_ieee1609dot2_ecencSm2, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EccP256CurvePoint },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_BasePublicEncryptionKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_BasePublicEncryptionKey, BasePublicEncryptionKey_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t PublicEncryptionKey_sequence[] = {
  { &hf_ieee1609dot2_supportedSymmAlg, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SymmAlgorithm },
  { &hf_ieee1609dot2_publicKey, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_BasePublicEncryptionKey },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_PublicEncryptionKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_PublicEncryptionKey, PublicEncryptionKey_sequence);

  return offset;
}


static const value_string ieee1609dot2_SymmetricEncryptionKey_vals[] = {
  {   0, "aes128Ccm" },
  {   1, "sm4Ccm" },
  { 0, NULL }
};

static const oer_choice_t SymmetricEncryptionKey_choice[] = {
  {   0, &hf_ieee1609dot2_aes128Ccm, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_OCTET_STRING_SIZE_16 },
  {   1, &hf_ieee1609dot2_sm4Ccm , ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_OCTET_STRING_SIZE_16 },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_SymmetricEncryptionKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_SymmetricEncryptionKey, SymmetricEncryptionKey_choice,
                                 NULL);

  return offset;
}


static const value_string ieee1609dot2_EncryptionKey_vals[] = {
  {   0, "public" },
  {   1, "symmetric" },
  { 0, NULL }
};

static const oer_choice_t EncryptionKey_choice[] = {
  {   0, &hf_ieee1609dot2_public , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_PublicEncryptionKey },
  {   1, &hf_ieee1609dot2_symmetric, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_SymmetricEncryptionKey },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_EncryptionKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_EncryptionKey, EncryptionKey_choice,
                                 NULL);

  return offset;
}


static const value_string ieee1609dot2_PublicVerificationKey_vals[] = {
  {   0, "ecdsaNistP256" },
  {   1, "ecdsaBrainpoolP256r1" },
  {   2, "ecdsaBrainpoolP384r1" },
  {   3, "ecdsaNistP384" },
  {   4, "ecsigSm2" },
  { 0, NULL }
};

static const oer_choice_t PublicVerificationKey_choice[] = {
  {   0, &hf_ieee1609dot2_ecdsaNistP256, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EccP256CurvePoint },
  {   1, &hf_ieee1609dot2_ecdsaBrainpoolP256r1, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EccP256CurvePoint },
  {   2, &hf_ieee1609dot2_ecdsaBrainpoolP384r1, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EccP384CurvePoint },
  {   3, &hf_ieee1609dot2_ecdsaNistP384, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EccP384CurvePoint },
  {   4, &hf_ieee1609dot2_ecsigSm2, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EccP256CurvePoint },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_PublicVerificationKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_PublicVerificationKey, PublicVerificationKey_choice,
                                 NULL);

  return offset;
}


const val64_string ieee1609dot2_Psid_vals[] = {
  { psid_system, "psid-system" },
  { psid_electronic_fee_collection, "psid-electronic-fee-collection" },
  { psid_freight_fleet_management, "psid-freight-fleet-management" },
  { psid_public_transport, "psid-public-transport" },
  { psid_traffic_traveller_information, "psid-traffic-traveller-information" },
  { psid_traffic_control, "psid-traffic-control" },
  { psid_parking_management, "psid-parking-management" },
  { psid_geographic_road_database, "psid-geographic-road-database" },
  { psid_medium_range_preinformation, "psid-medium-range-preinformation" },
  { psid_man_machine_interface, "psid-man-machine-interface" },
  { psid_intersystem_interface, "psid-intersystem-interface" },
  { psid_automatic_vehicle_identification, "psid-automatic-vehicle-identification" },
  { psid_emergency_warning, "psid-emergency-warning" },
  { psid_private, "psid-private" },
  { psid_multi_purpose_payment, "psid-multi-purpose-payment" },
  { psid_dsrc_resource_manager, "psid-dsrc-resource-manager" },
  { psid_after_theft_systems, "psid-after-theft-systems" },
  { psid_cruise_assist_highway_system, "psid-cruise-assist-highway-system" },
  { psid_multi_purpose_information_system, "psid-multi-purpose-information-system" },
  { psid_multi_mobile_information_system, "psid-multi-mobile-information-system" },
  { psid_efc_compliance_check_communication_applications, "psid-efc-compliance-check-communication-applications" },
  { psid_efc_localisation_augmentation_communication_applications, "psid-efc-localisation-augmentation-communication-applications" },
  { psid_iso_cen_dsrc_applications_0x16, "psid-iso-cen-dsrc-applications-0x16" },
  { psid_iso_cen_dsrc_applications_0x17, "psid-iso-cen-dsrc-applications-0x17" },
  { psid_iso_cen_dsrc_applications_0x18, "psid-iso-cen-dsrc-applications-0x18" },
  { psid_iso_cen_dsrc_applications_0x19, "psid-iso-cen-dsrc-applications-0x19" },
  { psid_iso_cen_dsrc_applications_0x1a, "psid-iso-cen-dsrc-applications-0x1a" },
  { psid_iso_cen_dsrc_applications_0x1b, "psid-iso-cen-dsrc-applications-0x1b" },
  { psid_iso_cen_dsrc_applications_0x1c, "psid-iso-cen-dsrc-applications-0x1c" },
  { psid_private_use_0x1d, "psid-private-use-0x1d" },
  { psid_private_use_0x1e, "psid-private-use-0x1e" },
  { psid_iso_cen_dsrc_applications_0x1f, "psid-iso-cen-dsrc-applications-0x1f" },
  { psid_vehicle_to_vehicle_safety_and_awarenesss, "psid-vehicle-to-vehicle-safety-and-awarenesss" },
  { psid_limited_sensor_vehicle_to_vehicle_safety_and_awarenesss, "psid-limited-sensor-vehicle-to-vehicle-safety-and-awarenesss" },
  { psid_tracked_vehicle_safety_and_awarenesss, "psid-tracked-vehicle-safety-and-awarenesss" },
  { psid_wave_security_managements, "psid-wave-security-managements" },
  { psid_ca_basic_services, "psid-ca-basic-services" },
  { psid_den_basic_services, "psid-den-basic-services" },
  { psid_misbehavior_reporting_for_common_applications, "psid-misbehavior-reporting-for-common-applications" },
  { psid_vulnerable_road_users_safety_applications, "psid-vulnerable-road-users-safety-applications" },
  { psid_testings, "psid-testings" },
  { psid_differential_gps_corrections_uncompressed, "psid-differential-gps-corrections-uncompressed" },
  { psid_differential_gps_corrections_compressed, "psid-differential-gps-corrections-compressed" },
  { psid_intersection_safety_and_awareness, "psid-intersection-safety-and-awareness" },
  { psid_traveller_information_and_roadside_signage, "psid-traveller-information-and-roadside-signage" },
  { psid_mobile_probe_exchanges, "psid-mobile-probe-exchanges" },
  { psid_emergency_and_erratic_vehicles_present_in_roadway, "psid-emergency-and-erratic-vehicles-present-in-roadway" },
  { psid_remote_management_protocol_execution, "psid-remote-management-protocol-execution" },
  { psid_wave_service_advertisement, "psid-wave-service-advertisement" },
  { psid_peer_to_peer_distribution_of_security_management_information, "psid-peer-to-peer-distribution-of-security-management-information" },
  { psid_traffic_light_manoeuver_service, "psid-traffic-light-manoeuver-service" },
  { psid_road_and_lane_topology_service, "psid-road-and-lane-topology-service" },
  { psid_infrastructure_to_vehicle_information_service, "psid-infrastructure-to-vehicle-information-service" },
  { psid_traffic_light_control_requests_service, "psid-traffic-light-control-requests-service" },
  { psid_geonetworking_management_communications, "psid-geonetworking-management-communications" },
  { psid_certificate_revocation_list_application, "psid-certificate-revocation-list-application" },
  { psid_traffic_light_control_status_service, "psid-traffic-light-control-status-service" },
  { psid_collective_perception_service, "psid-collective-perception-service" },
  { psid_vehicle_initiated_distress_notivication, "psid-vehicle-initiated-distress-notivication" },
  { psid_fast_service_advertisement_protocol, "psid-fast-service-advertisement-protocol" },
  { psid_its_station_internal_management_communications_protocol, "psid-its-station-internal-management-communications-protocol" },
  { psid_veniam_delay_tolerant_networking, "psid-veniam-delay-tolerant-networking" },
  { psid_transcore_software_update, "psid-transcore-software-update" },
  { psid_sra_private_applications_0x204084, "psid-sra-private-applications-0x204084" },
  { psid_sra_private_applications_0x204085, "psid-sra-private-applications-0x204085" },
  { psid_sra_private_applications_0x204086, "psid-sra-private-applications-0x204086" },
  { psid_sra_private_applications_0x204087, "psid-sra-private-applications-0x204087" },
  { psid_ipv6_routing, "psid-ipv6-routing" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_Psid(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer_64b_no_ub(tvb, offset, actx, tree, hf_index,
                                                            0U, NO_BOUND, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_T_psPsid(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer_64b_no_ub(tvb, offset, actx, tree, hf_index,
                                               0U, NO_BOUND, &((ieee1609_private_data_t*)actx->private_data)->psidssp, FALSE);


  return offset;
}



static int
dissect_ieee1609dot2_T_opaque(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  tvbuff_t *ssp;
  ieee1609_private_data_t *my_private_data = (ieee1609_private_data_t*)actx->private_data;

  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       0, NO_BOUND, FALSE, &ssp);
  if (ssp) {
    // Create subtree
    proto_tree *subtree = proto_item_add_subtree(actx->created_item, ett_ieee1609dot2_ssp);
    /* Call next dissector here */
    dissector_try_uint(ssp_subdissector_table, (guint32) my_private_data->psidssp, ssp, actx->pinfo, subtree);
  }

  return offset;
}



static int
dissect_ieee1609dot2_BitmapSsp(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       0, 31, FALSE, NULL);

  return offset;
}


static const value_string ieee1609dot2_ServiceSpecificPermissions_vals[] = {
  {   0, "opaque" },
  {   1, "bitmapSsp" },
  { 0, NULL }
};

static const oer_choice_t ServiceSpecificPermissions_choice[] = {
  {   0, &hf_ieee1609dot2_opaque , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_T_opaque },
  {   1, &hf_ieee1609dot2_bitmapSsp, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_BitmapSsp },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_ServiceSpecificPermissions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_ServiceSpecificPermissions, ServiceSpecificPermissions_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t PsidSsp_sequence[] = {
  { &hf_ieee1609dot2_psPsid , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_psPsid },
  { &hf_ieee1609dot2_ssp    , ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_ServiceSpecificPermissions },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_PsidSsp(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_PsidSsp, PsidSsp_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfPsidSsp_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfPsidSsp_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_PsidSsp },
};

static int
dissect_ieee1609dot2_SequenceOfPsidSsp(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfPsidSsp, SequenceOfPsidSsp_sequence_of);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_0_MAX(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       0, NO_BOUND, FALSE, NULL);

  return offset;
}


static const oer_sequence_t SequenceOfOctetString_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfOctetString_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_0_MAX },
};

static int
dissect_ieee1609dot2_SequenceOfOctetString(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_SequenceOfOctetString, SequenceOfOctetString_sequence_of,
                                                  0, NO_BOUND, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_1_32(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       1, 32, FALSE, NULL);

  return offset;
}


static const oer_sequence_t BitmapSspRange_sequence[] = {
  { &hf_ieee1609dot2_sspValue, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_1_32 },
  { &hf_ieee1609dot2_sspBitmask, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_1_32 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_BitmapSspRange(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_BitmapSspRange, BitmapSspRange_sequence);

  return offset;
}


static const value_string ieee1609dot2_SspRange_vals[] = {
  {   0, "opaque" },
  {   1, "all" },
  {   2, "bitmapSspRange" },
  { 0, NULL }
};

static const oer_choice_t SspRange_choice[] = {
  {   0, &hf_ieee1609dot2_srRange, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_SequenceOfOctetString },
  {   1, &hf_ieee1609dot2_all    , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_NULL },
  {   2, &hf_ieee1609dot2_bitmapSspRange, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_BitmapSspRange },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_SspRange(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_SspRange, SspRange_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t PsidSspRange_sequence[] = {
  { &hf_ieee1609dot2_psid   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Psid },
  { &hf_ieee1609dot2_sspRange, ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_SspRange },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_PsidSspRange(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_PsidSspRange, PsidSspRange_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfPsidSspRange_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfPsidSspRange_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_PsidSspRange },
};

static int
dissect_ieee1609dot2_SequenceOfPsidSspRange(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfPsidSspRange, SequenceOfPsidSspRange_sequence_of);

  return offset;
}



static int
dissect_ieee1609dot2_SubjectAssurance(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       1, 1, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_CrlSeries(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_Uint16(tvb, offset, actx, tree, hf_index);

  return offset;
}



static int
dissect_ieee1609dot2_IValue(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_Uint16(tvb, offset, actx, tree, hf_index);

  return offset;
}



static int
dissect_ieee1609dot2_Hostname(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_UTF8String(tvb, offset, actx, tree, hf_index,
                                          0, 255, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_LinkageValue(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       9, 9, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_4(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       4, 4, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_9(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       9, 9, FALSE, NULL);

  return offset;
}


static const oer_sequence_t GroupLinkageValue_sequence[] = {
  { &hf_ieee1609dot2_jValue , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_4 },
  { &hf_ieee1609dot2_value  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_9 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_GroupLinkageValue(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_GroupLinkageValue, GroupLinkageValue_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_LaId(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       2, 2, FALSE, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_LinkageSeed(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       16, 16, FALSE, NULL);

  return offset;
}


static const oer_sequence_t SequenceOfLinkageSeed_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfLinkageSeed_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageSeed },
};

static int
dissect_ieee1609dot2_SequenceOfLinkageSeed(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfLinkageSeed, SequenceOfLinkageSeed_sequence_of);

  return offset;
}


static const value_string ieee1609dot2_ExtId_vals[] = {
  {   1, "certExtId-OperatingOrganization" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_ExtId(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            0U, 255U, NULL, FALSE);

  return offset;
}


static const oer_sequence_t CrlPriorityInfo_sequence[] = {
  { &hf_ieee1609dot2_priority, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_Uint8 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CrlPriorityInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CrlPriorityInfo, CrlPriorityInfo_sequence);

  return offset;
}


static const oer_sequence_t HashBasedRevocationInfo_sequence[] = {
  { &hf_ieee1609dot2_id     , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId10 },
  { &hf_ieee1609dot2_expiry , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Time32 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_HashBasedRevocationInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_HashBasedRevocationInfo, HashBasedRevocationInfo_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfHashBasedRevocationInfo_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfHashBasedRevocationInfo_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashBasedRevocationInfo },
};

static int
dissect_ieee1609dot2_SequenceOfHashBasedRevocationInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfHashBasedRevocationInfo, SequenceOfHashBasedRevocationInfo_sequence_of);

  return offset;
}


static const oer_sequence_t ToBeSignedHashIdCrl_sequence[] = {
  { &hf_ieee1609dot2_crlSerial, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint32 },
  { &hf_ieee1609dot2_entries, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfHashBasedRevocationInfo },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ToBeSignedHashIdCrl(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ToBeSignedHashIdCrl, ToBeSignedHashIdCrl_sequence);

  return offset;
}


static const oer_sequence_t IndividualRevocation_sequence[] = {
  { &hf_ieee1609dot2_linkageSeed1, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageSeed },
  { &hf_ieee1609dot2_linkageSeed2, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageSeed },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_IndividualRevocation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_IndividualRevocation, IndividualRevocation_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfIndividualRevocation_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfIndividualRevocation_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IndividualRevocation },
};

static int
dissect_ieee1609dot2_SequenceOfIndividualRevocation(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_SequenceOfIndividualRevocation, SequenceOfIndividualRevocation_sequence_of,
                                                  0, NO_BOUND, FALSE);

  return offset;
}


static const oer_sequence_t IMaxGroup_sequence[] = {
  { &hf_ieee1609dot2_iMax   , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint16 },
  { &hf_ieee1609dot2_contents_02, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfIndividualRevocation },
  { &hf_ieee1609dot2_singleSeed, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfLinkageSeed },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_IMaxGroup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_IMaxGroup, IMaxGroup_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfIMaxGroup_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfIMaxGroup_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IMaxGroup },
};

static int
dissect_ieee1609dot2_SequenceOfIMaxGroup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfIMaxGroup, SequenceOfIMaxGroup_sequence_of);

  return offset;
}


static const oer_sequence_t LAGroup_sequence[] = {
  { &hf_ieee1609dot2_la1Id  , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LaId },
  { &hf_ieee1609dot2_la2Id  , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LaId },
  { &hf_ieee1609dot2_contents_01, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfIMaxGroup },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_LAGroup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_LAGroup, LAGroup_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfLAGroup_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfLAGroup_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LAGroup },
};

static int
dissect_ieee1609dot2_SequenceOfLAGroup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfLAGroup, SequenceOfLAGroup_sequence_of);

  return offset;
}


static const oer_sequence_t JMaxGroup_sequence[] = {
  { &hf_ieee1609dot2_jmax   , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_contents, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfLAGroup },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_JMaxGroup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_JMaxGroup, JMaxGroup_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfJMaxGroup_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfJMaxGroup_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_JMaxGroup },
};

static int
dissect_ieee1609dot2_SequenceOfJMaxGroup(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfJMaxGroup, SequenceOfJMaxGroup_sequence_of);

  return offset;
}


static const oer_sequence_t GroupCrlEntry_sequence[] = {
  { &hf_ieee1609dot2_iMax   , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint16 },
  { &hf_ieee1609dot2_la1Id  , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LaId },
  { &hf_ieee1609dot2_linkageSeed1, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageSeed },
  { &hf_ieee1609dot2_la2Id  , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LaId },
  { &hf_ieee1609dot2_linkageSeed2, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageSeed },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_GroupCrlEntry(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_GroupCrlEntry, GroupCrlEntry_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfGroupCrlEntry_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfGroupCrlEntry_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_GroupCrlEntry },
};

static int
dissect_ieee1609dot2_SequenceOfGroupCrlEntry(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfGroupCrlEntry, SequenceOfGroupCrlEntry_sequence_of);

  return offset;
}


static const oer_sequence_t GroupSingleSeedCrlEntry_sequence[] = {
  { &hf_ieee1609dot2_iMax   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint16 },
  { &hf_ieee1609dot2_laId   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LaId },
  { &hf_ieee1609dot2_linkageSeed, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageSeed },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_GroupSingleSeedCrlEntry(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_GroupSingleSeedCrlEntry, GroupSingleSeedCrlEntry_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfGroupSingleSeedCrlEntry_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_GroupSingleSeedCrlEntry },
};

static int
dissect_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry, SequenceOfGroupSingleSeedCrlEntry_sequence_of);

  return offset;
}


static const oer_sequence_t ToBeSignedLinkageValueCrl_sequence[] = {
  { &hf_ieee1609dot2_iRev   , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IValue },
  { &hf_ieee1609dot2_indexWithinI, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_individual, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfJMaxGroup },
  { &hf_ieee1609dot2_groups , ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfGroupCrlEntry },
  { &hf_ieee1609dot2_groupsSingleSeed, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ToBeSignedLinkageValueCrl(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ToBeSignedLinkageValueCrl, ToBeSignedLinkageValueCrl_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_SeedEvolutionFunctionIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_null(tvb, offset, actx, tree, hf_index);

  return offset;
}



static int
dissect_ieee1609dot2_LvGenerationFunctionIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_null(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const oer_sequence_t ToBeSignedLinkageValueCrlWithAlgIdentifier_sequence[] = {
  { &hf_ieee1609dot2_iRev   , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IValue },
  { &hf_ieee1609dot2_indexWithinI, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_seedEvolution, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SeedEvolutionFunctionIdentifier },
  { &hf_ieee1609dot2_lvGeneration, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LvGenerationFunctionIdentifier },
  { &hf_ieee1609dot2_individual, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfJMaxGroup },
  { &hf_ieee1609dot2_groups , ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfGroupCrlEntry },
  { &hf_ieee1609dot2_groupsSingleSeed, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ToBeSignedLinkageValueCrlWithAlgIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ToBeSignedLinkageValueCrlWithAlgIdentifier, ToBeSignedLinkageValueCrlWithAlgIdentifier_sequence);

  return offset;
}


static const value_string ieee1609dot2_TypeSpecificCrlContents_vals[] = {
  {   0, "fullHashCrl" },
  {   1, "deltaHashCrl" },
  {   2, "fullLinkedCrl" },
  {   3, "deltaLinkedCrl" },
  {   4, "fullLinkedCrlWithAlg" },
  {   5, "deltaLinkedCrlWithAlg" },
  { 0, NULL }
};

static const oer_choice_t TypeSpecificCrlContents_choice[] = {
  {   0, &hf_ieee1609dot2_fullHashCrl, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_ToBeSignedHashIdCrl },
  {   1, &hf_ieee1609dot2_deltaHashCrl, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_ToBeSignedHashIdCrl },
  {   2, &hf_ieee1609dot2_fullLinkedCrl, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_ToBeSignedLinkageValueCrl },
  {   3, &hf_ieee1609dot2_deltaLinkedCrl, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_ToBeSignedLinkageValueCrl },
  {   4, &hf_ieee1609dot2_fullLinkedCrlWithAlg, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_ToBeSignedLinkageValueCrlWithAlgIdentifier },
  {   5, &hf_ieee1609dot2_deltaLinkedCrlWithAlg, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_ToBeSignedLinkageValueCrlWithAlgIdentifier },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_TypeSpecificCrlContents(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_TypeSpecificCrlContents, TypeSpecificCrlContents_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t CrlContents_sequence[] = {
  { &hf_ieee1609dot2_version, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_crlSeries, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CrlSeries },
  { &hf_ieee1609dot2_crlCraca, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId8 },
  { &hf_ieee1609dot2_issueDate, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Time32 },
  { &hf_ieee1609dot2_nextCrl, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Time32 },
  { &hf_ieee1609dot2_priorityInfo, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CrlPriorityInfo },
  { &hf_ieee1609dot2_typeSpecific, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_TypeSpecificCrlContents },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CrlContents(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CrlContents, CrlContents_sequence);

  return offset;
}


static const value_string ieee1609dot2_Ieee1609Dot2CrlContent_vals[] = {
  {   0, "unsecuredData" },
  { 0, NULL }
};

static const oer_choice_t Ieee1609Dot2CrlContent_choice[] = {
  {   0, &hf_ieee1609dot2_unsecuredData, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_CrlContents },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_Ieee1609Dot2CrlContent(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_Ieee1609Dot2CrlContent, Ieee1609Dot2CrlContent_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t Ieee1609Dot2CrlData_sequence[] = {
  { &hf_ieee1609dot2_content_01, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Ieee1609Dot2CrlContent },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_Ieee1609Dot2CrlData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_Ieee1609Dot2CrlData, Ieee1609Dot2CrlData_sequence);

  return offset;
}


static const oer_sequence_t CrlSignedDataPayload_sequence[] = {
  { &hf_ieee1609dot2_data   , ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_Ieee1609Dot2CrlData },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CrlSignedDataPayload(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CrlSignedDataPayload, CrlSignedDataPayload_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_T_hiPsid(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  guint64 psid;
  ieee1609_private_data_t *my_private_data = (ieee1609_private_data_t*)actx->private_data;

  offset = dissect_oer_constrained_integer_64b_no_ub(tvb, offset, actx, tree, hf_index,
                                                            0U, NO_BOUND, &psid, FALSE);
  if ((my_private_data != NULL) && (my_private_data->unsecured_data != NULL)) {
    /* Call next dissector here */
    ieee1609dot2_set_next_default_psid(actx->pinfo, (guint32)psid);
    dissector_try_uint(unsecured_data_subdissector_table, (guint32) psid, my_private_data->unsecured_data, actx->pinfo, tree);
    my_private_data->unsecured_data = NULL;
  }


  return offset;
}


static const oer_sequence_t MissingCrlIdentifier_sequence[] = {
  { &hf_ieee1609dot2_cracaId, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId3 },
  { &hf_ieee1609dot2_crlSeries, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CrlSeries },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_MissingCrlIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_MissingCrlIdentifier, MissingCrlIdentifier_sequence);

  return offset;
}


static const value_string ieee1609dot2_CertificateType_vals[] = {
  {   0, "explicit" },
  {   1, "implicit" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_CertificateType(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_enumerated(tvb, offset, actx, tree, hf_index,
                                     2, NULL, TRUE, 0, NULL);

  return offset;
}


static const value_string ieee1609dot2_IssuerIdentifier_vals[] = {
  {   0, "sha256AndDigest" },
  {   1, "self" },
  {   2, "sha384AndDigest" },
  {   3, "sm3AndDigest" },
  { 0, NULL }
};

static const oer_choice_t IssuerIdentifier_choice[] = {
  {   0, &hf_ieee1609dot2_sha256AndDigest, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_HashedId8 },
  {   1, &hf_ieee1609dot2_iiSelf , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_HashAlgorithm },
  {   2, &hf_ieee1609dot2_sha384AndDigest, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_HashedId8 },
  {   3, &hf_ieee1609dot2_sm3AndDigest, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_HashedId8 },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_IssuerIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_IssuerIdentifier, IssuerIdentifier_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t LinkageData_sequence[] = {
  { &hf_ieee1609dot2_iCert  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IValue },
  { &hf_ieee1609dot2_linkage_value, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_LinkageValue },
  { &hf_ieee1609dot2_group_linkage_value, ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_GroupLinkageValue },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_LinkageData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_LinkageData, LinkageData_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_1_64(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       1, 64, FALSE, NULL);

  return offset;
}


static const value_string ieee1609dot2_CertificateId_vals[] = {
  {   0, "linkageData" },
  {   1, "name" },
  {   2, "binaryId" },
  {   3, "none" },
  { 0, NULL }
};

static const oer_choice_t CertificateId_choice[] = {
  {   0, &hf_ieee1609dot2_linkageData, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_LinkageData },
  {   1, &hf_ieee1609dot2_name   , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_Hostname },
  {   2, &hf_ieee1609dot2_binaryId, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_OCTET_STRING_SIZE_1_64 },
  {   3, &hf_ieee1609dot2_none   , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_NULL },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_CertificateId(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_CertificateId, CertificateId_choice,
                                 NULL);

  return offset;
}


static const value_string ieee1609dot2_SubjectPermissions_vals[] = {
  {   0, "explicit" },
  {   1, "all" },
  { 0, NULL }
};

static const oer_choice_t SubjectPermissions_choice[] = {
  {   0, &hf_ieee1609dot2_explicit, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_SequenceOfPsidSspRange },
  {   1, &hf_ieee1609dot2_all    , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_NULL },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_SubjectPermissions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_SubjectPermissions, SubjectPermissions_choice,
                                 NULL);

  return offset;
}



static int
dissect_ieee1609dot2_INTEGER(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_integer(tvb, offset, actx, tree, hf_index, NULL);

  return offset;
}


static int * const EndEntityType_bits[] = {
  &hf_ieee1609dot2_EndEntityType_app,
  &hf_ieee1609dot2_EndEntityType_enrol,
  NULL
};

static int
dissect_ieee1609dot2_EndEntityType(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_bit_string(tvb, offset, actx, tree, hf_index,
                                     8, 8, FALSE, EndEntityType_bits, 2, NULL, NULL);

  return offset;
}


static const oer_sequence_t PsidGroupPermissions_sequence[] = {
  { &hf_ieee1609dot2_subjectPermissions, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SubjectPermissions },
  { &hf_ieee1609dot2_minChainLength, ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_INTEGER },
  { &hf_ieee1609dot2_chainLengthRange, ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_INTEGER },
  { &hf_ieee1609dot2_eeType , ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_EndEntityType },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_PsidGroupPermissions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_PsidGroupPermissions, PsidGroupPermissions_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfPsidGroupPermissions_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfPsidGroupPermissions_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_PsidGroupPermissions },
};

static int
dissect_ieee1609dot2_SequenceOfPsidGroupPermissions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfPsidGroupPermissions, SequenceOfPsidGroupPermissions_sequence_of);

  return offset;
}


static const value_string ieee1609dot2_VerificationKeyIndicator_vals[] = {
  {   0, "verificationKey" },
  {   1, "reconstructionValue" },
  { 0, NULL }
};

static const oer_choice_t VerificationKeyIndicator_choice[] = {
  {   0, &hf_ieee1609dot2_verificationKey, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_PublicVerificationKey },
  {   1, &hf_ieee1609dot2_reconstructionValue, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EccP256CurvePoint },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_VerificationKeyIndicator(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_VerificationKeyIndicator, VerificationKeyIndicator_choice,
                                 NULL);

  return offset;
}


static int * const T_flags_bits[] = {
  &hf_ieee1609dot2_T_flags_usesCubk,
  NULL
};

static int
dissect_ieee1609dot2_T_flags(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_bit_string(tvb, offset, actx, tree, hf_index,
                                     8, 8, FALSE, T_flags_bits, 1, NULL, NULL);

  return offset;
}



static int
dissect_ieee1609dot2_T_content(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_open_type(tvb, offset, actx, tree, hf_index, NULL);

  return offset;
}


static const oer_sequence_t AppExtension_sequence[] = {
  { &hf_ieee1609dot2_id_02  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ExtId },
  { &hf_ieee1609dot2_content_03, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_content },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_AppExtension(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_AppExtension, AppExtension_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfAppExtensions_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfAppExtensions_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_AppExtension },
};

static int
dissect_ieee1609dot2_SequenceOfAppExtensions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_SequenceOfAppExtensions, SequenceOfAppExtensions_sequence_of,
                                                  1, NO_BOUND, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_T_specific(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_open_type(tvb, offset, actx, tree, hf_index, NULL);

  return offset;
}


static const value_string ieee1609dot2_T_permissions_vals[] = {
  {   0, "specific" },
  {   1, "all" },
  { 0, NULL }
};

static const oer_choice_t T_permissions_choice[] = {
  {   0, &hf_ieee1609dot2_specific, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_T_specific },
  {   1, &hf_ieee1609dot2_all    , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_NULL },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_T_permissions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_T_permissions, T_permissions_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t CertIssueExtension_sequence[] = {
  { &hf_ieee1609dot2_id_02  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ExtId },
  { &hf_ieee1609dot2_permissions, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_permissions },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CertIssueExtension(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CertIssueExtension, CertIssueExtension_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfCertIssueExtensions_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfCertIssueExtensions_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CertIssueExtension },
};

static int
dissect_ieee1609dot2_SequenceOfCertIssueExtensions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_SequenceOfCertIssueExtensions, SequenceOfCertIssueExtensions_sequence_of,
                                                  1, NO_BOUND, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_T_content_01(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_open_type(tvb, offset, actx, tree, hf_index, NULL);

  return offset;
}


static const value_string ieee1609dot2_T_permissions_01_vals[] = {
  {   0, "content" },
  {   1, "all" },
  { 0, NULL }
};

static const oer_choice_t T_permissions_01_choice[] = {
  {   0, &hf_ieee1609dot2_content_04, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_T_content_01 },
  {   1, &hf_ieee1609dot2_all    , ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_NULL },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_T_permissions_01(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_T_permissions_01, T_permissions_01_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t CertRequestExtension_sequence[] = {
  { &hf_ieee1609dot2_id_02  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ExtId },
  { &hf_ieee1609dot2_permissions_01, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_permissions_01 },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CertRequestExtension(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CertRequestExtension, CertRequestExtension_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfCertRequestExtensions_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfCertRequestExtensions_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CertRequestExtension },
};

static int
dissect_ieee1609dot2_SequenceOfCertRequestExtensions(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_SequenceOfCertRequestExtensions, SequenceOfCertRequestExtensions_sequence_of,
                                                  1, NO_BOUND, FALSE);

  return offset;
}


static const oer_sequence_t ToBeSignedCertificate_sequence[] = {
  { &hf_ieee1609dot2_id_01  , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CertificateId },
  { &hf_ieee1609dot2_cracaId, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId3 },
  { &hf_ieee1609dot2_crlSeries, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CrlSeries },
  { &hf_ieee1609dot2_validityPeriod, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ValidityPeriod },
  { &hf_ieee1609dot2_region , ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_GeographicRegion },
  { &hf_ieee1609dot2_assuranceLevel, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SubjectAssurance },
  { &hf_ieee1609dot2_appPermissions, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfPsidSsp },
  { &hf_ieee1609dot2_certIssuePermissions, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfPsidGroupPermissions },
  { &hf_ieee1609dot2_certRequestPermissions, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfPsidGroupPermissions },
  { &hf_ieee1609dot2_canRequestRollover, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_NULL },
  { &hf_ieee1609dot2_tbscEncryptionKey, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_PublicEncryptionKey },
  { &hf_ieee1609dot2_verifyKeyIndicator, ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_VerificationKeyIndicator },
  { &hf_ieee1609dot2_flags  , ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_T_flags },
  { &hf_ieee1609dot2_appExtensions, ASN1_NOT_EXTENSION_ROOT, ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfAppExtensions },
  { &hf_ieee1609dot2_certIssueExtensions, ASN1_NOT_EXTENSION_ROOT, ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfCertIssueExtensions },
  { &hf_ieee1609dot2_certRequestExtension, ASN1_NOT_EXTENSION_ROOT, ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfCertRequestExtensions },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ToBeSignedCertificate(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ToBeSignedCertificate, ToBeSignedCertificate_sequence);

  return offset;
}


static const oer_sequence_t CertificateBase_sequence[] = {
  { &hf_ieee1609dot2_version, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_type   , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CertificateType },
  { &hf_ieee1609dot2_issuer , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_IssuerIdentifier },
  { &hf_ieee1609dot2_toBeSigned, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ToBeSignedCertificate },
  { &hf_ieee1609dot2_signature, ASN1_NO_EXTENSIONS     , ASN1_OPTIONAL    , dissect_ieee1609dot2_Signature },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CertificateBase(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CertificateBase, CertificateBase_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_Certificate(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_CertificateBase(tvb, offset, actx, tree, hf_index);

  return offset;
}


static const value_string ieee1609dot2_PduFunctionalType_vals[] = {
  {   1, "tlsHandshake" },
  {   2, "iso21177ExtendedAuth" },
  {   3, "iso21177SessionExtension" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_PduFunctionalType(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            0U, 255U, NULL, FALSE);

  return offset;
}


static const value_string ieee1609dot2_HeaderInfoContributorId_vals[] = {
  {   1, "ieee1609HeaderInfoContributorId" },
  {   2, "etsiHeaderInfoContributorId" },
  { 0, NULL }
};


static int
dissect_ieee1609dot2_HeaderInfoContributorId(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_integer(tvb, offset, actx, tree, hf_index,
                                                            0U, 255U, NULL, FALSE);

  return offset;
}



static int
dissect_ieee1609dot2_T_extns_item(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_open_type(tvb, offset, actx, tree, hf_index, NULL);

  return offset;
}


static const oer_sequence_t T_extns_sequence_of[1] = {
  { &hf_ieee1609dot2_extns_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_extns_item },
};

static int
dissect_ieee1609dot2_T_extns(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_T_extns, T_extns_sequence_of,
                                                  1, NO_BOUND, FALSE);

  return offset;
}


static const oer_sequence_t ContributedExtensionBlock_sequence[] = {
  { &hf_ieee1609dot2_contributorId, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HeaderInfoContributorId },
  { &hf_ieee1609dot2_extns  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_extns },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ContributedExtensionBlock(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ContributedExtensionBlock, ContributedExtensionBlock_sequence);

  return offset;
}


static const oer_sequence_t ContributedExtensionBlocks_sequence_of[1] = {
  { &hf_ieee1609dot2_ContributedExtensionBlocks_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ContributedExtensionBlock },
};

static int
dissect_ieee1609dot2_ContributedExtensionBlocks(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_constrained_sequence_of(tvb, offset, actx, tree, hf_index,
                                                  ett_ieee1609dot2_ContributedExtensionBlocks, ContributedExtensionBlocks_sequence_of,
                                                  1, NO_BOUND, FALSE);

  return offset;
}


static const oer_sequence_t HeaderInfo_sequence[] = {
  { &hf_ieee1609dot2_hiPsid , ASN1_EXTENSION_ROOT    , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_T_hiPsid },
  { &hf_ieee1609dot2_generationTime, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_Time64 },
  { &hf_ieee1609dot2_expiryTime, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_Time64 },
  { &hf_ieee1609dot2_generationLocation, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_ThreeDLocation },
  { &hf_ieee1609dot2_p2pcdLearningRequest, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_HashedId3 },
  { &hf_ieee1609dot2_missingCrlIdentifier, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_MissingCrlIdentifier },
  { &hf_ieee1609dot2_encryptionKey, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_EncryptionKey },
  { &hf_ieee1609dot2_inlineP2pcdRequest, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_SequenceOfHashedId3 },
  { &hf_ieee1609dot2_requestedCertificate, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_Certificate },
  { &hf_ieee1609dot2_pduFunctionalType, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_PduFunctionalType },
  { &hf_ieee1609dot2_contributedExtensions, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_ContributedExtensionBlocks },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_HeaderInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_HeaderInfo, HeaderInfo_sequence);

  return offset;
}


static const oer_sequence_t CrlToBeSignedData_sequence[] = {
  { &hf_ieee1609dot2_payload, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CrlSignedDataPayload },
  { &hf_ieee1609dot2_headerInfo, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HeaderInfo },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CrlToBeSignedData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CrlToBeSignedData, CrlToBeSignedData_sequence);

  return offset;
}


static const oer_sequence_t CrlSignedData_sequence[] = {
  { &hf_ieee1609dot2_tbsData, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_CrlToBeSignedData },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_CrlSignedData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_CrlSignedData, CrlSignedData_sequence);

  return offset;
}


static const value_string ieee1609dot2_SecuredCrlContent_vals[] = {
  {   0, "signedData" },
  { 0, NULL }
};

static const oer_choice_t SecuredCrlContent_choice[] = {
  {   0, &hf_ieee1609dot2_signedData, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_CrlSignedData },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_SecuredCrlContent(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_SecuredCrlContent, SecuredCrlContent_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t SecuredCrl_sequence[] = {
  { &hf_ieee1609dot2_content, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SecuredCrlContent },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_SecuredCrl(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_SecuredCrl, SecuredCrl_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_T_unsecuredData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  ieee1609_private_data_t *my_private_data = (ieee1609_private_data_t*)actx->private_data;

  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       NO_BOUND, NO_BOUND, FALSE, &my_private_data->unsecured_data);

  if (my_private_data->unsecured_data) {
    // psid may also be provided in HeaderInfo
    guint32 psid = GPOINTER_TO_UINT(p_get_proto_data(wmem_file_scope(), actx->pinfo, proto_ieee1609dot2, 0));
    if (psid) {
      /* Call next dissector here */
      dissector_try_uint(unsecured_data_subdissector_table, psid, my_private_data->unsecured_data, actx->pinfo, tree);
      my_private_data->unsecured_data = NULL;
    }
    // else: wait for the HeaderInfo for a second chance to dissect the content
  }


  return offset;
}


static const value_string ieee1609dot2_HashedData_vals[] = {
  {   0, "sha256HashedData" },
  {   1, "sha384HashedData" },
  {   2, "sm3HashedData" },
  { 0, NULL }
};

static const oer_choice_t HashedData_choice[] = {
  {   0, &hf_ieee1609dot2_sha256HashedData, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_HashedId32 },
  {   1, &hf_ieee1609dot2_sha384HashedData, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_HashedId48 },
  {   2, &hf_ieee1609dot2_sm3HashedData, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_HashedId32 },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_HashedData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_HashedData, HashedData_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t SignedDataPayload_sequence[] = {
  { &hf_ieee1609dot2_data_01, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_Ieee1609Dot2Data },
  { &hf_ieee1609dot2_extDataHash, ASN1_EXTENSION_ROOT    , ASN1_OPTIONAL    , dissect_ieee1609dot2_HashedData },
  { &hf_ieee1609dot2_omitted, ASN1_NOT_EXTENSION_ROOT, ASN1_OPTIONAL    , dissect_ieee1609dot2_NULL },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_SignedDataPayload(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_SignedDataPayload, SignedDataPayload_sequence);

  return offset;
}


static const oer_sequence_t ToBeSignedData_sequence[] = {
  { &hf_ieee1609dot2_payload_01, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SignedDataPayload },
  { &hf_ieee1609dot2_headerInfo, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HeaderInfo },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_ToBeSignedData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_ToBeSignedData, ToBeSignedData_sequence);

  return offset;
}


static const oer_sequence_t SequenceOfCertificate_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfCertificate_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Certificate },
};

static int
dissect_ieee1609dot2_SequenceOfCertificate(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfCertificate, SequenceOfCertificate_sequence_of);

  return offset;
}


static const value_string ieee1609dot2_SignerIdentifier_vals[] = {
  {   0, "digest" },
  {   1, "certificate" },
  {   2, "self" },
  { 0, NULL }
};

static const oer_choice_t SignerIdentifier_choice[] = {
  {   0, &hf_ieee1609dot2_digest , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_HashedId8 },
  {   1, &hf_ieee1609dot2_certificate, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_SequenceOfCertificate },
  {   2, &hf_ieee1609dot2_siSelf , ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_NULL },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_SignerIdentifier(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_SignerIdentifier, SignerIdentifier_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t SignedData_sequence[] = {
  { &hf_ieee1609dot2_hashId , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashAlgorithm },
  { &hf_ieee1609dot2_tbsData_01, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_ToBeSignedData },
  { &hf_ieee1609dot2_signer , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SignerIdentifier },
  { &hf_ieee1609dot2_signature, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Signature },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_SignedData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_SignedData, SignedData_sequence);

  return offset;
}



static int
dissect_ieee1609dot2_PreSharedKeyRecipientInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_ieee1609dot2_HashedId8(tvb, offset, actx, tree, hf_index);

  return offset;
}



static int
dissect_ieee1609dot2_OCTET_STRING_SIZE_12(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_octet_string(tvb, offset, actx, tree, hf_index,
                                       12, 12, FALSE, NULL);

  return offset;
}


static const oer_sequence_t One28BitCcmCiphertext_sequence[] = {
  { &hf_ieee1609dot2_nonce  , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_OCTET_STRING_SIZE_12 },
  { &hf_ieee1609dot2_ccmCiphertext, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Opaque },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_One28BitCcmCiphertext(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_One28BitCcmCiphertext, One28BitCcmCiphertext_sequence);

  return offset;
}


static const value_string ieee1609dot2_SymmetricCiphertext_vals[] = {
  {   0, "aes128ccm" },
  {   1, "sm4Ccm" },
  { 0, NULL }
};

static const oer_choice_t SymmetricCiphertext_choice[] = {
  {   0, &hf_ieee1609dot2_aes128ccm, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_One28BitCcmCiphertext },
  {   1, &hf_ieee1609dot2_sm4Ccm_01, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_One28BitCcmCiphertext },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_SymmetricCiphertext(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_SymmetricCiphertext, SymmetricCiphertext_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t SymmRecipientInfo_sequence[] = {
  { &hf_ieee1609dot2_recipientId, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId8 },
  { &hf_ieee1609dot2_sriEncKey, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SymmetricCiphertext },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_SymmRecipientInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_SymmRecipientInfo, SymmRecipientInfo_sequence);

  return offset;
}


static const value_string ieee1609dot2_EncryptedDataEncryptionKey_vals[] = {
  {   0, "eciesNistP256" },
  {   1, "eciesBrainpoolP256r1" },
  {   2, "ecencSm2256" },
  { 0, NULL }
};

static const oer_choice_t EncryptedDataEncryptionKey_choice[] = {
  {   0, &hf_ieee1609dot2_edeEciesNistP256, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EciesP256EncryptedKey },
  {   1, &hf_ieee1609dot2_edekEciesBrainpoolP256r1, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EciesP256EncryptedKey },
  {   2, &hf_ieee1609dot2_ecencSm2256, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_EcencP256EncryptedKey },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_EncryptedDataEncryptionKey(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_EncryptedDataEncryptionKey, EncryptedDataEncryptionKey_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t PKRecipientInfo_sequence[] = {
  { &hf_ieee1609dot2_recipientId, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_HashedId8 },
  { &hf_ieee1609dot2_encKey , ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_EncryptedDataEncryptionKey },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_PKRecipientInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_PKRecipientInfo, PKRecipientInfo_sequence);

  return offset;
}


static const value_string ieee1609dot2_RecipientInfo_vals[] = {
  {   0, "pskRecipInfo" },
  {   1, "symmRecipInfo" },
  {   2, "certRecipInfo" },
  {   3, "signedDataRecipInfo" },
  {   4, "rekRecipInfo" },
  { 0, NULL }
};

static const oer_choice_t RecipientInfo_choice[] = {
  {   0, &hf_ieee1609dot2_pskRecipInfo, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_PreSharedKeyRecipientInfo },
  {   1, &hf_ieee1609dot2_symmRecipInfo, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_SymmRecipientInfo },
  {   2, &hf_ieee1609dot2_certRecipInfo, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_PKRecipientInfo },
  {   3, &hf_ieee1609dot2_signedDataRecipInfo, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_PKRecipientInfo },
  {   4, &hf_ieee1609dot2_rekRecipInfo, ASN1_NO_EXTENSIONS     , dissect_ieee1609dot2_PKRecipientInfo },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_RecipientInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_RecipientInfo, RecipientInfo_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t SequenceOfRecipientInfo_sequence_of[1] = {
  { &hf_ieee1609dot2_SequenceOfRecipientInfo_item, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_RecipientInfo },
};

static int
dissect_ieee1609dot2_SequenceOfRecipientInfo(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence_of(tvb, offset, actx, tree, hf_index,
                                      ett_ieee1609dot2_SequenceOfRecipientInfo, SequenceOfRecipientInfo_sequence_of);

  return offset;
}


static const oer_sequence_t EncryptedData_sequence[] = {
  { &hf_ieee1609dot2_recipients, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SequenceOfRecipientInfo },
  { &hf_ieee1609dot2_ciphertext, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_SymmetricCiphertext },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_EncryptedData(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_EncryptedData, EncryptedData_sequence);

  return offset;
}


static const value_string ieee1609dot2_Ieee1609Dot2Content_vals[] = {
  {   0, "unsecuredData" },
  {   1, "signedData" },
  {   2, "encryptedData" },
  {   3, "signedCertificateRequest" },
  {   4, "signedX509CertificateRequest" },
  { 0, NULL }
};

static const oer_choice_t Ieee1609Dot2Content_choice[] = {
  {   0, &hf_ieee1609dot2_unsecuredData_01, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_T_unsecuredData },
  {   1, &hf_ieee1609dot2_signedData_01, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_SignedData },
  {   2, &hf_ieee1609dot2_encryptedData, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_EncryptedData },
  {   3, &hf_ieee1609dot2_signedCertificateRequest, ASN1_EXTENSION_ROOT    , dissect_ieee1609dot2_Opaque },
  {   4, &hf_ieee1609dot2_signedX509CertificateRequest, ASN1_NOT_EXTENSION_ROOT, dissect_ieee1609dot2_Opaque },
  { 0, NULL, 0, NULL }
};

static int
dissect_ieee1609dot2_Ieee1609Dot2Content(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  offset = dissect_oer_choice(tvb, offset, actx, tree, hf_index,
                                 ett_ieee1609dot2_Ieee1609Dot2Content, Ieee1609Dot2Content_choice,
                                 NULL);

  return offset;
}


static const oer_sequence_t Ieee1609Dot2Data_sequence[] = {
  { &hf_ieee1609dot2_protocolVersion, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Uint8 },
  { &hf_ieee1609dot2_content_02, ASN1_NO_EXTENSIONS     , ASN1_NOT_OPTIONAL, dissect_ieee1609dot2_Ieee1609Dot2Content },
  { NULL, 0, 0, NULL }
};

static int
dissect_ieee1609dot2_Ieee1609Dot2Data(tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
  // Ieee1609Dot2Data → Ieee1609Dot2Content → SignedData → ToBeSignedData → SignedDataPayload → Ieee1609Dot2Data
  actx->pinfo->dissection_depth += 5;
  increment_dissection_depth(actx->pinfo);
  actx->private_data = (void*)wmem_new0(actx->pinfo->pool, ieee1609_private_data_t);
  offset = dissect_oer_sequence(tvb, offset, actx, tree, hf_index,
                                   ett_ieee1609dot2_Ieee1609Dot2Data, Ieee1609Dot2Data_sequence);

  actx->pinfo->dissection_depth -= 5;
  decrement_dissection_depth(actx->pinfo);
  return offset;
}

/*--- PDUs ---*/

static int dissect_SecuredCrl_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
  int offset = 0;
  asn1_ctx_t asn1_ctx;
  asn1_ctx_init(&asn1_ctx, ASN1_ENC_OER, TRUE, pinfo);
  offset = dissect_ieee1609dot2_SecuredCrl(tvb, offset, &asn1_ctx, tree, hf_ieee1609dot2_SecuredCrl_PDU);
  return offset;
}
static int dissect_Ieee1609Dot2Data_PDU(tvbuff_t *tvb _U_, packet_info *pinfo _U_, proto_tree *tree _U_, void *data _U_) {
  int offset = 0;
  asn1_ctx_t asn1_ctx;
  asn1_ctx_init(&asn1_ctx, ASN1_ENC_OER, TRUE, pinfo);
  offset = dissect_ieee1609dot2_Ieee1609Dot2Data(tvb, offset, &asn1_ctx, tree, hf_ieee1609dot2_Ieee1609Dot2Data_PDU);
  return offset;
}



static void
ieee1609dot2_NinetyDegreeInt_fmt(gchar *s, guint32 v)
{
  gint32 lat = (gint32)v;
  if (lat == 900000001) {
    snprintf(s, ITEM_LABEL_LENGTH, "unavailable(%d)", lat);
  } else {
    snprintf(s, ITEM_LABEL_LENGTH, "%u°%u'%.3f\"%c (%d)",
               abs(lat) / 10000000,
               abs(lat) % 10000000 * 6 / 1000000,
               abs(lat) % 10000000 * 6 % 1000000 * 6.0 / 100000.0,
               (lat >= 0) ? 'N' : 'S',
               lat);
  }
}

static void
ieee1609dot2_OneEightyDegreeInt_fmt(gchar *s, guint32 v)
{
  gint32 lng = (gint32)v;
  if (lng == 1800000001) {
    snprintf(s, ITEM_LABEL_LENGTH, "unavailable(%d)", lng);
  } else {
    snprintf(s, ITEM_LABEL_LENGTH, "%u°%u'%.3f\"%c (%d)",
               abs(lng) / 10000000,
               abs(lng) % 10000000 * 6 / 1000000,
               abs(lng) % 10000000 * 6 % 1000000 * 6.0 / 100000.0,
               (lng >= 0) ? 'E' : 'W',
               lng);
  }
}


static void
ieee1609dot2_Time32_fmt(gchar *s, guint32 v)
{
  time_t secs = v + 1072915200 - 5;
  struct tm *tm = gmtime(&secs);
  snprintf(s, ITEM_LABEL_LENGTH, "%u-%02u-%02u %02u:%02u:%02u (%u)",
    tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, v
  );
}

static void
ieee1609dot2_Time64_fmt(gchar *s, guint64 v)
{
  time_t secs = v / 1000000 + 1072915200 - 5;
  guint32 usecs = v % 1000000;
  struct tm *tm = gmtime(&secs);
  snprintf(s, ITEM_LABEL_LENGTH, "%u-%02u-%02u %02u:%02u:%02u.%06u (%" PRIu64 ")",
    tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday, tm->tm_hour, tm->tm_min, tm->tm_sec, usecs, v
  );
}

/*--- proto_register_ieee1609dot2 ----------------------------------------------*/
void proto_register_ieee1609dot2(void) {

  /* List of fields */
  static hf_register_info hf[] = {
    { &hf_ieee1609dot2_SecuredCrl_PDU,
      { "SecuredCrl", "ieee1609dot2.SecuredCrl_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_Ieee1609Dot2Data_PDU,
      { "Ieee1609Dot2Data", "ieee1609dot2.Ieee1609Dot2Data_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfUint8_item,
      { "Uint8", "ieee1609dot2.Uint8",
        FT_UINT32, BASE_DEC, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfUint16_item,
      { "Uint16", "ieee1609dot2.Uint16",
        FT_UINT32, BASE_DEC, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfHashedId3_item,
      { "HashedId3", "ieee1609dot2.HashedId3",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_start,
      { "start", "ieee1609dot2.start",
        FT_UINT32, BASE_CUSTOM, CF_FUNC(ieee1609dot2_Time32_fmt), 0,
        "Time32", HFILL }},
    { &hf_ieee1609dot2_duration,
      { "duration", "ieee1609dot2.duration",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_Duration_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_microseconds,
      { "microseconds", "ieee1609dot2.microseconds",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_milliseconds,
      { "milliseconds", "ieee1609dot2.milliseconds",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_seconds,
      { "seconds", "ieee1609dot2.seconds",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_minutes,
      { "minutes", "ieee1609dot2.minutes",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_hours,
      { "hours", "ieee1609dot2.hours",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_sixtyHours,
      { "sixtyHours", "ieee1609dot2.sixtyHours",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_years,
      { "years", "ieee1609dot2.years",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_circularRegion,
      { "circularRegion", "ieee1609dot2.circularRegion_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_rectangularRegion,
      { "rectangularRegion", "ieee1609dot2.rectangularRegion",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfRectangularRegion", HFILL }},
    { &hf_ieee1609dot2_polygonalRegion,
      { "polygonalRegion", "ieee1609dot2.polygonalRegion",
        FT_UINT32, BASE_DEC, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_identifiedRegion,
      { "identifiedRegion", "ieee1609dot2.identifiedRegion",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfIdentifiedRegion", HFILL }},
    { &hf_ieee1609dot2_center,
      { "center", "ieee1609dot2.center_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "TwoDLocation", HFILL }},
    { &hf_ieee1609dot2_radius,
      { "radius", "ieee1609dot2.radius",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_northWest,
      { "northWest", "ieee1609dot2.northWest_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "TwoDLocation", HFILL }},
    { &hf_ieee1609dot2_southEast,
      { "southEast", "ieee1609dot2.southEast_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "TwoDLocation", HFILL }},
    { &hf_ieee1609dot2_SequenceOfRectangularRegion_item,
      { "RectangularRegion", "ieee1609dot2.RectangularRegion_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_PolygonalRegion_item,
      { "TwoDLocation", "ieee1609dot2.TwoDLocation_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_latitude,
      { "latitude", "ieee1609dot2.latitude",
        FT_INT32, BASE_CUSTOM, CF_FUNC(ieee1609dot2_NinetyDegreeInt_fmt), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_longitude,
      { "longitude", "ieee1609dot2.longitude",
        FT_INT32, BASE_CUSTOM, CF_FUNC(ieee1609dot2_OneEightyDegreeInt_fmt), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_countryOnly,
      { "countryOnly", "ieee1609dot2.countryOnly",
        FT_UINT32, BASE_DEC, NULL, 0,
        "UnCountryId", HFILL }},
    { &hf_ieee1609dot2_countryAndRegions,
      { "countryAndRegions", "ieee1609dot2.countryAndRegions_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_countryAndSubregions,
      { "countryAndSubregions", "ieee1609dot2.countryAndSubregions_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfIdentifiedRegion_item,
      { "IdentifiedRegion", "ieee1609dot2.IdentifiedRegion",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_IdentifiedRegion_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_regions,
      { "regions", "ieee1609dot2.regions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfUint8", HFILL }},
    { &hf_ieee1609dot2_regionAndSubregions,
      { "regionAndSubregions", "ieee1609dot2.regionAndSubregions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfRegionAndSubregions", HFILL }},
    { &hf_ieee1609dot2_rasRegion,
      { "region", "ieee1609dot2.region",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint8", HFILL }},
    { &hf_ieee1609dot2_subregions,
      { "subregions", "ieee1609dot2.subregions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfUint16", HFILL }},
    { &hf_ieee1609dot2_SequenceOfRegionAndSubregions_item,
      { "RegionAndSubregions", "ieee1609dot2.RegionAndSubregions_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_elevation,
      { "elevation", "ieee1609dot2.elevation",
        FT_UINT32, BASE_DEC, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_ecdsaNistP256Signature,
      { "ecdsaNistP256Signature", "ieee1609dot2.ecdsaNistP256Signature_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EcdsaP256Signature", HFILL }},
    { &hf_ieee1609dot2_ecdsaBrainpoolP256r1Signature,
      { "ecdsaBrainpoolP256r1Signature", "ieee1609dot2.ecdsaBrainpoolP256r1Signature_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EcdsaP256Signature", HFILL }},
    { &hf_ieee1609dot2_ecdsaBrainpoolP384r1Signature,
      { "ecdsaBrainpoolP384r1Signature", "ieee1609dot2.ecdsaBrainpoolP384r1Signature_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EcdsaP384Signature", HFILL }},
    { &hf_ieee1609dot2_ecdsaNistP384Signature,
      { "ecdsaNistP384Signature", "ieee1609dot2.ecdsaNistP384Signature_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EcdsaP384Signature", HFILL }},
    { &hf_ieee1609dot2_sm2Signature,
      { "sm2Signature", "ieee1609dot2.sm2Signature_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EcsigP256Signature", HFILL }},
    { &hf_ieee1609dot2_rSig,
      { "rSig", "ieee1609dot2.rSig",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_sSig,
      { "sSig", "ieee1609dot2.sSig",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_ecdsap384RSig,
      { "rSig", "ieee1609dot2.rSig",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP384CurvePoint_vals), 0,
        "EccP384CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecdsap384SSig,
      { "sSig", "ieee1609dot2.sSig",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_48", HFILL }},
    { &hf_ieee1609dot2_rSig_01,
      { "rSig", "ieee1609dot2.rSig",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_x_only,
      { "x-only", "ieee1609dot2.x_only",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_fill,
      { "fill", "ieee1609dot2.fill_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_compressed_y_0,
      { "compressed-y-0", "ieee1609dot2.compressed_y_0",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_compressed_y_1,
      { "compressed-y-1", "ieee1609dot2.compressed_y_1",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_uncompressedP256,
      { "uncompressedP256", "ieee1609dot2.uncompressedP256_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_x,
      { "x", "ieee1609dot2.x",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_y,
      { "y", "ieee1609dot2.y",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_eccp384cpXOnly,
      { "x-only", "ieee1609dot2.x_only",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_48", HFILL }},
    { &hf_ieee1609dot2_eccp384cpCompressed_y_0,
      { "compressed-y-0", "ieee1609dot2.compressed_y_0",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_48", HFILL }},
    { &hf_ieee1609dot2_eccp384cpCompressed_y_1,
      { "compressed-y-1", "ieee1609dot2.compressed_y_1",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_48", HFILL }},
    { &hf_ieee1609dot2_uncompressedP384,
      { "uncompressedP384", "ieee1609dot2.uncompressedP384_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_eccp384cpX,
      { "x", "ieee1609dot2.x",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_48", HFILL }},
    { &hf_ieee1609dot2_eccp384cpY,
      { "y", "ieee1609dot2.y",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_48", HFILL }},
    { &hf_ieee1609dot2_v,
      { "v", "ieee1609dot2.v",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_c,
      { "c", "ieee1609dot2.c",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_16", HFILL }},
    { &hf_ieee1609dot2_t,
      { "t", "ieee1609dot2.t",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_16", HFILL }},
    { &hf_ieee1609dot2_t_01,
      { "t", "ieee1609dot2.t",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_32", HFILL }},
    { &hf_ieee1609dot2_public,
      { "public", "ieee1609dot2.public_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "PublicEncryptionKey", HFILL }},
    { &hf_ieee1609dot2_symmetric,
      { "symmetric", "ieee1609dot2.symmetric",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SymmetricEncryptionKey_vals), 0,
        "SymmetricEncryptionKey", HFILL }},
    { &hf_ieee1609dot2_supportedSymmAlg,
      { "supportedSymmAlg", "ieee1609dot2.supportedSymmAlg",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SymmAlgorithm_vals), 0,
        "SymmAlgorithm", HFILL }},
    { &hf_ieee1609dot2_publicKey,
      { "publicKey", "ieee1609dot2.publicKey",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_BasePublicEncryptionKey_vals), 0,
        "BasePublicEncryptionKey", HFILL }},
    { &hf_ieee1609dot2_eciesNistP256,
      { "eciesNistP256", "ieee1609dot2.eciesNistP256",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_eciesBrainpoolP256r1,
      { "eciesBrainpoolP256r1", "ieee1609dot2.eciesBrainpoolP256r1",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecencSm2,
      { "ecencSm2", "ieee1609dot2.ecencSm2",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecdsaNistP256,
      { "ecdsaNistP256", "ieee1609dot2.ecdsaNistP256",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecdsaBrainpoolP256r1,
      { "ecdsaBrainpoolP256r1", "ieee1609dot2.ecdsaBrainpoolP256r1",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecdsaBrainpoolP384r1,
      { "ecdsaBrainpoolP384r1", "ieee1609dot2.ecdsaBrainpoolP384r1",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP384CurvePoint_vals), 0,
        "EccP384CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecdsaNistP384,
      { "ecdsaNistP384", "ieee1609dot2.ecdsaNistP384",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP384CurvePoint_vals), 0,
        "EccP384CurvePoint", HFILL }},
    { &hf_ieee1609dot2_ecsigSm2,
      { "ecsigSm2", "ieee1609dot2.ecsigSm2",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_aes128Ccm,
      { "aes128Ccm", "ieee1609dot2.aes128Ccm",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_16", HFILL }},
    { &hf_ieee1609dot2_sm4Ccm,
      { "sm4Ccm", "ieee1609dot2.sm4Ccm",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_16", HFILL }},
    { &hf_ieee1609dot2_psPsid,
      { "psid", "ieee1609dot2.psid",
        FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(ieee1609dot2_Psid_vals), 0,
        "T_psPsid", HFILL }},
    { &hf_ieee1609dot2_ssp,
      { "ssp", "ieee1609dot2.ssp",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_ServiceSpecificPermissions_vals), 0,
        "ServiceSpecificPermissions", HFILL }},
    { &hf_ieee1609dot2_SequenceOfPsidSsp_item,
      { "PsidSsp", "ieee1609dot2.PsidSsp_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_opaque,
      { "opaque", "ieee1609dot2.opaque",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_bitmapSsp,
      { "bitmapSsp", "ieee1609dot2.bitmapSsp",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_psid,
      { "psid", "ieee1609dot2.psid",
        FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(ieee1609dot2_Psid_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_sspRange,
      { "sspRange", "ieee1609dot2.sspRange",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SspRange_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfPsidSspRange_item,
      { "PsidSspRange", "ieee1609dot2.PsidSspRange_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_srRange,
      { "opaque", "ieee1609dot2.srRange.opaque",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfOctetString", HFILL }},
    { &hf_ieee1609dot2_all,
      { "all", "ieee1609dot2.all_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_bitmapSspRange,
      { "bitmapSspRange", "ieee1609dot2.bitmapSspRange_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_sspValue,
      { "sspValue", "ieee1609dot2.sspValue",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_1_32", HFILL }},
    { &hf_ieee1609dot2_sspBitmask,
      { "sspBitmask", "ieee1609dot2.sspBitmask",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_1_32", HFILL }},
    { &hf_ieee1609dot2_SequenceOfOctetString_item,
      { "SequenceOfOctetString item", "ieee1609dot2.SequenceOfOctetString_item",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_0_MAX", HFILL }},
    { &hf_ieee1609dot2_jValue,
      { "jValue", "ieee1609dot2.jValue",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_4", HFILL }},
    { &hf_ieee1609dot2_value,
      { "value", "ieee1609dot2.value",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_9", HFILL }},
    { &hf_ieee1609dot2_SequenceOfLinkageSeed_item,
      { "LinkageSeed", "ieee1609dot2.LinkageSeed",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_version,
      { "version", "ieee1609dot2.version",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint8", HFILL }},
    { &hf_ieee1609dot2_crlSeries,
      { "crlSeries", "ieee1609dot2.crlSeries",
        FT_UINT32, BASE_DEC, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_crlCraca,
      { "crlCraca", "ieee1609dot2.crlCraca",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId8", HFILL }},
    { &hf_ieee1609dot2_issueDate,
      { "issueDate", "ieee1609dot2.issueDate",
        FT_UINT32, BASE_CUSTOM, CF_FUNC(ieee1609dot2_Time32_fmt), 0,
        "Time32", HFILL }},
    { &hf_ieee1609dot2_nextCrl,
      { "nextCrl", "ieee1609dot2.nextCrl",
        FT_UINT32, BASE_CUSTOM, CF_FUNC(ieee1609dot2_Time32_fmt), 0,
        "Time32", HFILL }},
    { &hf_ieee1609dot2_priorityInfo,
      { "priorityInfo", "ieee1609dot2.priorityInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "CrlPriorityInfo", HFILL }},
    { &hf_ieee1609dot2_typeSpecific,
      { "typeSpecific", "ieee1609dot2.typeSpecific",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_TypeSpecificCrlContents_vals), 0,
        "TypeSpecificCrlContents", HFILL }},
    { &hf_ieee1609dot2_priority,
      { "priority", "ieee1609dot2.priority",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint8", HFILL }},
    { &hf_ieee1609dot2_fullHashCrl,
      { "fullHashCrl", "ieee1609dot2.fullHashCrl_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedHashIdCrl", HFILL }},
    { &hf_ieee1609dot2_deltaHashCrl,
      { "deltaHashCrl", "ieee1609dot2.deltaHashCrl_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedHashIdCrl", HFILL }},
    { &hf_ieee1609dot2_fullLinkedCrl,
      { "fullLinkedCrl", "ieee1609dot2.fullLinkedCrl_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedLinkageValueCrl", HFILL }},
    { &hf_ieee1609dot2_deltaLinkedCrl,
      { "deltaLinkedCrl", "ieee1609dot2.deltaLinkedCrl_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedLinkageValueCrl", HFILL }},
    { &hf_ieee1609dot2_fullLinkedCrlWithAlg,
      { "fullLinkedCrlWithAlg", "ieee1609dot2.fullLinkedCrlWithAlg_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedLinkageValueCrlWithAlgIdentifier", HFILL }},
    { &hf_ieee1609dot2_deltaLinkedCrlWithAlg,
      { "deltaLinkedCrlWithAlg", "ieee1609dot2.deltaLinkedCrlWithAlg_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedLinkageValueCrlWithAlgIdentifier", HFILL }},
    { &hf_ieee1609dot2_crlSerial,
      { "crlSerial", "ieee1609dot2.crlSerial",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint32", HFILL }},
    { &hf_ieee1609dot2_entries,
      { "entries", "ieee1609dot2.entries",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfHashBasedRevocationInfo", HFILL }},
    { &hf_ieee1609dot2_SequenceOfHashBasedRevocationInfo_item,
      { "HashBasedRevocationInfo", "ieee1609dot2.HashBasedRevocationInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_id,
      { "id", "ieee1609dot2.id",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId10", HFILL }},
    { &hf_ieee1609dot2_expiry,
      { "expiry", "ieee1609dot2.expiry",
        FT_UINT32, BASE_CUSTOM, CF_FUNC(ieee1609dot2_Time32_fmt), 0,
        "Time32", HFILL }},
    { &hf_ieee1609dot2_iRev,
      { "iRev", "ieee1609dot2.iRev",
        FT_UINT32, BASE_DEC, NULL, 0,
        "IValue", HFILL }},
    { &hf_ieee1609dot2_indexWithinI,
      { "indexWithinI", "ieee1609dot2.indexWithinI",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint8", HFILL }},
    { &hf_ieee1609dot2_individual,
      { "individual", "ieee1609dot2.individual",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfJMaxGroup", HFILL }},
    { &hf_ieee1609dot2_groups,
      { "groups", "ieee1609dot2.groups",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfGroupCrlEntry", HFILL }},
    { &hf_ieee1609dot2_groupsSingleSeed,
      { "groupsSingleSeed", "ieee1609dot2.groupsSingleSeed",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfGroupSingleSeedCrlEntry", HFILL }},
    { &hf_ieee1609dot2_SequenceOfJMaxGroup_item,
      { "JMaxGroup", "ieee1609dot2.JMaxGroup_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_jmax,
      { "jmax", "ieee1609dot2.jmax",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint8", HFILL }},
    { &hf_ieee1609dot2_contents,
      { "contents", "ieee1609dot2.contents",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfLAGroup", HFILL }},
    { &hf_ieee1609dot2_SequenceOfLAGroup_item,
      { "LAGroup", "ieee1609dot2.LAGroup_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_la1Id,
      { "la1Id", "ieee1609dot2.la1Id",
        FT_BYTES, BASE_NONE, NULL, 0,
        "LaId", HFILL }},
    { &hf_ieee1609dot2_la2Id,
      { "la2Id", "ieee1609dot2.la2Id",
        FT_BYTES, BASE_NONE, NULL, 0,
        "LaId", HFILL }},
    { &hf_ieee1609dot2_contents_01,
      { "contents", "ieee1609dot2.contents",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfIMaxGroup", HFILL }},
    { &hf_ieee1609dot2_SequenceOfIMaxGroup_item,
      { "IMaxGroup", "ieee1609dot2.IMaxGroup_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_iMax,
      { "iMax", "ieee1609dot2.iMax",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint16", HFILL }},
    { &hf_ieee1609dot2_contents_02,
      { "contents", "ieee1609dot2.contents",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfIndividualRevocation", HFILL }},
    { &hf_ieee1609dot2_singleSeed,
      { "singleSeed", "ieee1609dot2.singleSeed",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfLinkageSeed", HFILL }},
    { &hf_ieee1609dot2_SequenceOfIndividualRevocation_item,
      { "IndividualRevocation", "ieee1609dot2.IndividualRevocation_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_linkageSeed1,
      { "linkageSeed1", "ieee1609dot2.linkageSeed1",
        FT_BYTES, BASE_NONE, NULL, 0,
        "LinkageSeed", HFILL }},
    { &hf_ieee1609dot2_linkageSeed2,
      { "linkageSeed2", "ieee1609dot2.linkageSeed2",
        FT_BYTES, BASE_NONE, NULL, 0,
        "LinkageSeed", HFILL }},
    { &hf_ieee1609dot2_SequenceOfGroupCrlEntry_item,
      { "GroupCrlEntry", "ieee1609dot2.GroupCrlEntry_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_seedEvolution,
      { "seedEvolution", "ieee1609dot2.seedEvolution_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "SeedEvolutionFunctionIdentifier", HFILL }},
    { &hf_ieee1609dot2_lvGeneration,
      { "lvGeneration", "ieee1609dot2.lvGeneration_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "LvGenerationFunctionIdentifier", HFILL }},
    { &hf_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry_item,
      { "GroupSingleSeedCrlEntry", "ieee1609dot2.GroupSingleSeedCrlEntry_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_laId,
      { "laId", "ieee1609dot2.laId",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_linkageSeed,
      { "linkageSeed", "ieee1609dot2.linkageSeed",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_content,
      { "content", "ieee1609dot2.content",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SecuredCrlContent_vals), 0,
        "SecuredCrlContent", HFILL }},
    { &hf_ieee1609dot2_signedData,
      { "signedData", "ieee1609dot2.signedData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "CrlSignedData", HFILL }},
    { &hf_ieee1609dot2_tbsData,
      { "tbsData", "ieee1609dot2.tbsData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "CrlToBeSignedData", HFILL }},
    { &hf_ieee1609dot2_payload,
      { "payload", "ieee1609dot2.payload_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "CrlSignedDataPayload", HFILL }},
    { &hf_ieee1609dot2_headerInfo,
      { "headerInfo", "ieee1609dot2.headerInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_data,
      { "data", "ieee1609dot2.data_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "Ieee1609Dot2CrlData", HFILL }},
    { &hf_ieee1609dot2_content_01,
      { "content", "ieee1609dot2.content",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_Ieee1609Dot2CrlContent_vals), 0,
        "Ieee1609Dot2CrlContent", HFILL }},
    { &hf_ieee1609dot2_unsecuredData,
      { "unsecuredData", "ieee1609dot2.unsecuredData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "CrlContents", HFILL }},
    { &hf_ieee1609dot2_protocolVersion,
      { "protocolVersion", "ieee1609dot2.protocolVersion",
        FT_UINT32, BASE_DEC, NULL, 0,
        "Uint8", HFILL }},
    { &hf_ieee1609dot2_content_02,
      { "content", "ieee1609dot2.content",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_Ieee1609Dot2Content_vals), 0,
        "Ieee1609Dot2Content", HFILL }},
    { &hf_ieee1609dot2_unsecuredData_01,
      { "unsecuredData", "ieee1609dot2.unsecuredData",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_signedData_01,
      { "signedData", "ieee1609dot2.signedData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_encryptedData,
      { "encryptedData", "ieee1609dot2.encryptedData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_signedCertificateRequest,
      { "signedCertificateRequest", "ieee1609dot2.signedCertificateRequest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "Opaque", HFILL }},
    { &hf_ieee1609dot2_signedX509CertificateRequest,
      { "signedX509CertificateRequest", "ieee1609dot2.signedX509CertificateRequest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "Opaque", HFILL }},
    { &hf_ieee1609dot2_hashId,
      { "hashId", "ieee1609dot2.hashId",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_HashAlgorithm_vals), 0,
        "HashAlgorithm", HFILL }},
    { &hf_ieee1609dot2_tbsData_01,
      { "tbsData", "ieee1609dot2.tbsData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedData", HFILL }},
    { &hf_ieee1609dot2_signer,
      { "signer", "ieee1609dot2.signer",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SignerIdentifier_vals), 0,
        "SignerIdentifier", HFILL }},
    { &hf_ieee1609dot2_signature,
      { "signature", "ieee1609dot2.signature",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_Signature_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_payload_01,
      { "payload", "ieee1609dot2.payload_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "SignedDataPayload", HFILL }},
    { &hf_ieee1609dot2_data_01,
      { "data", "ieee1609dot2.data_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "Ieee1609Dot2Data", HFILL }},
    { &hf_ieee1609dot2_extDataHash,
      { "extDataHash", "ieee1609dot2.extDataHash",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_HashedData_vals), 0,
        "HashedData", HFILL }},
    { &hf_ieee1609dot2_omitted,
      { "omitted", "ieee1609dot2.omitted_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_sha256HashedData,
      { "sha256HashedData", "ieee1609dot2.sha256HashedData",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId32", HFILL }},
    { &hf_ieee1609dot2_sha384HashedData,
      { "sha384HashedData", "ieee1609dot2.sha384HashedData",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId48", HFILL }},
    { &hf_ieee1609dot2_sm3HashedData,
      { "sm3HashedData", "ieee1609dot2.sm3HashedData",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId32", HFILL }},
    { &hf_ieee1609dot2_hiPsid,
      { "psid", "ieee1609dot2.psid",
        FT_UINT64, BASE_DEC|BASE_VAL64_STRING, VALS64(ieee1609dot2_Psid_vals), 0,
        "T_hiPsid", HFILL }},
    { &hf_ieee1609dot2_generationTime,
      { "generationTime", "ieee1609dot2.generationTime",
        FT_UINT64, BASE_CUSTOM, CF_FUNC(ieee1609dot2_Time64_fmt), 0,
        "Time64", HFILL }},
    { &hf_ieee1609dot2_expiryTime,
      { "expiryTime", "ieee1609dot2.expiryTime",
        FT_UINT64, BASE_CUSTOM, CF_FUNC(ieee1609dot2_Time64_fmt), 0,
        "Time64", HFILL }},
    { &hf_ieee1609dot2_generationLocation,
      { "generationLocation", "ieee1609dot2.generationLocation_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ThreeDLocation", HFILL }},
    { &hf_ieee1609dot2_p2pcdLearningRequest,
      { "p2pcdLearningRequest", "ieee1609dot2.p2pcdLearningRequest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId3", HFILL }},
    { &hf_ieee1609dot2_missingCrlIdentifier,
      { "missingCrlIdentifier", "ieee1609dot2.missingCrlIdentifier_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_encryptionKey,
      { "encryptionKey", "ieee1609dot2.encryptionKey",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EncryptionKey_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_inlineP2pcdRequest,
      { "inlineP2pcdRequest", "ieee1609dot2.inlineP2pcdRequest",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfHashedId3", HFILL }},
    { &hf_ieee1609dot2_requestedCertificate,
      { "requestedCertificate", "ieee1609dot2.requestedCertificate_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "Certificate", HFILL }},
    { &hf_ieee1609dot2_pduFunctionalType,
      { "pduFunctionalType", "ieee1609dot2.pduFunctionalType",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_PduFunctionalType_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_contributedExtensions,
      { "contributedExtensions", "ieee1609dot2.contributedExtensions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "ContributedExtensionBlocks", HFILL }},
    { &hf_ieee1609dot2_cracaId,
      { "cracaId", "ieee1609dot2.cracaId",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId3", HFILL }},
    { &hf_ieee1609dot2_ContributedExtensionBlocks_item,
      { "ContributedExtensionBlock", "ieee1609dot2.ContributedExtensionBlock_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_contributorId,
      { "contributorId", "ieee1609dot2.contributorId",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_HeaderInfoContributorId_vals), 0,
        "HeaderInfoContributorId", HFILL }},
    { &hf_ieee1609dot2_extns,
      { "extns", "ieee1609dot2.extns",
        FT_UINT32, BASE_DEC, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_extns_item,
      { "extns item", "ieee1609dot2.extns_item_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_digest,
      { "digest", "ieee1609dot2.digest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId8", HFILL }},
    { &hf_ieee1609dot2_certificate,
      { "certificate", "ieee1609dot2.certificate",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfCertificate", HFILL }},
    { &hf_ieee1609dot2_siSelf,
      { "self", "ieee1609dot2.self_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_recipients,
      { "recipients", "ieee1609dot2.recipients",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfRecipientInfo", HFILL }},
    { &hf_ieee1609dot2_ciphertext,
      { "ciphertext", "ieee1609dot2.ciphertext",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SymmetricCiphertext_vals), 0,
        "SymmetricCiphertext", HFILL }},
    { &hf_ieee1609dot2_pskRecipInfo,
      { "pskRecipInfo", "ieee1609dot2.pskRecipInfo",
        FT_BYTES, BASE_NONE, NULL, 0,
        "PreSharedKeyRecipientInfo", HFILL }},
    { &hf_ieee1609dot2_symmRecipInfo,
      { "symmRecipInfo", "ieee1609dot2.symmRecipInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "SymmRecipientInfo", HFILL }},
    { &hf_ieee1609dot2_certRecipInfo,
      { "certRecipInfo", "ieee1609dot2.certRecipInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "PKRecipientInfo", HFILL }},
    { &hf_ieee1609dot2_signedDataRecipInfo,
      { "signedDataRecipInfo", "ieee1609dot2.signedDataRecipInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "PKRecipientInfo", HFILL }},
    { &hf_ieee1609dot2_rekRecipInfo,
      { "rekRecipInfo", "ieee1609dot2.rekRecipInfo_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "PKRecipientInfo", HFILL }},
    { &hf_ieee1609dot2_SequenceOfRecipientInfo_item,
      { "RecipientInfo", "ieee1609dot2.RecipientInfo",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_RecipientInfo_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_recipientId,
      { "recipientId", "ieee1609dot2.recipientId",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId8", HFILL }},
    { &hf_ieee1609dot2_sriEncKey,
      { "encKey", "ieee1609dot2.encKey",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SymmetricCiphertext_vals), 0,
        "SymmetricCiphertext", HFILL }},
    { &hf_ieee1609dot2_encKey,
      { "encKey", "ieee1609dot2.encKey",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EncryptedDataEncryptionKey_vals), 0,
        "EncryptedDataEncryptionKey", HFILL }},
    { &hf_ieee1609dot2_edeEciesNistP256,
      { "eciesNistP256", "ieee1609dot2.eciesNistP256_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EciesP256EncryptedKey", HFILL }},
    { &hf_ieee1609dot2_edekEciesBrainpoolP256r1,
      { "eciesBrainpoolP256r1", "ieee1609dot2.eciesBrainpoolP256r1_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EciesP256EncryptedKey", HFILL }},
    { &hf_ieee1609dot2_ecencSm2256,
      { "ecencSm2256", "ieee1609dot2.ecencSm2256_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "EcencP256EncryptedKey", HFILL }},
    { &hf_ieee1609dot2_aes128ccm,
      { "aes128ccm", "ieee1609dot2.aes128ccm_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "One28BitCcmCiphertext", HFILL }},
    { &hf_ieee1609dot2_sm4Ccm_01,
      { "sm4Ccm", "ieee1609dot2.sm4Ccm_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "One28BitCcmCiphertext", HFILL }},
    { &hf_ieee1609dot2_nonce,
      { "nonce", "ieee1609dot2.nonce",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_12", HFILL }},
    { &hf_ieee1609dot2_ccmCiphertext,
      { "ccmCiphertext", "ieee1609dot2.ccmCiphertext",
        FT_BYTES, BASE_NONE, NULL, 0,
        "Opaque", HFILL }},
    { &hf_ieee1609dot2_SequenceOfCertificate_item,
      { "Certificate", "ieee1609dot2.Certificate_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_type,
      { "type", "ieee1609dot2.type",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_CertificateType_vals), 0,
        "CertificateType", HFILL }},
    { &hf_ieee1609dot2_issuer,
      { "issuer", "ieee1609dot2.issuer",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_IssuerIdentifier_vals), 0,
        "IssuerIdentifier", HFILL }},
    { &hf_ieee1609dot2_toBeSigned,
      { "toBeSigned", "ieee1609dot2.toBeSigned_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "ToBeSignedCertificate", HFILL }},
    { &hf_ieee1609dot2_sha256AndDigest,
      { "sha256AndDigest", "ieee1609dot2.sha256AndDigest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId8", HFILL }},
    { &hf_ieee1609dot2_iiSelf,
      { "self", "ieee1609dot2.self",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_HashAlgorithm_vals), 0,
        "HashAlgorithm", HFILL }},
    { &hf_ieee1609dot2_sha384AndDigest,
      { "sha384AndDigest", "ieee1609dot2.sha384AndDigest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId8", HFILL }},
    { &hf_ieee1609dot2_sm3AndDigest,
      { "sm3AndDigest", "ieee1609dot2.sm3AndDigest",
        FT_BYTES, BASE_NONE, NULL, 0,
        "HashedId8", HFILL }},
    { &hf_ieee1609dot2_id_01,
      { "id", "ieee1609dot2.id",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_CertificateId_vals), 0,
        "CertificateId", HFILL }},
    { &hf_ieee1609dot2_validityPeriod,
      { "validityPeriod", "ieee1609dot2.validityPeriod_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_region,
      { "region", "ieee1609dot2.region",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_GeographicRegion_vals), 0,
        "GeographicRegion", HFILL }},
    { &hf_ieee1609dot2_assuranceLevel,
      { "assuranceLevel", "ieee1609dot2.assuranceLevel",
        FT_BYTES, BASE_NONE, NULL, 0,
        "SubjectAssurance", HFILL }},
    { &hf_ieee1609dot2_appPermissions,
      { "appPermissions", "ieee1609dot2.appPermissions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfPsidSsp", HFILL }},
    { &hf_ieee1609dot2_certIssuePermissions,
      { "certIssuePermissions", "ieee1609dot2.certIssuePermissions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfPsidGroupPermissions", HFILL }},
    { &hf_ieee1609dot2_certRequestPermissions,
      { "certRequestPermissions", "ieee1609dot2.certRequestPermissions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfPsidGroupPermissions", HFILL }},
    { &hf_ieee1609dot2_canRequestRollover,
      { "canRequestRollover", "ieee1609dot2.canRequestRollover_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_tbscEncryptionKey,
      { "encryptionKey", "ieee1609dot2.encryptionKey_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "PublicEncryptionKey", HFILL }},
    { &hf_ieee1609dot2_verifyKeyIndicator,
      { "verifyKeyIndicator", "ieee1609dot2.verifyKeyIndicator",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_VerificationKeyIndicator_vals), 0,
        "VerificationKeyIndicator", HFILL }},
    { &hf_ieee1609dot2_flags,
      { "flags", "ieee1609dot2.flags",
        FT_BYTES, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_appExtensions,
      { "appExtensions", "ieee1609dot2.appExtensions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfAppExtensions", HFILL }},
    { &hf_ieee1609dot2_certIssueExtensions,
      { "certIssueExtensions", "ieee1609dot2.certIssueExtensions",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfCertIssueExtensions", HFILL }},
    { &hf_ieee1609dot2_certRequestExtension,
      { "certRequestExtension", "ieee1609dot2.certRequestExtension",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfCertRequestExtensions", HFILL }},
    { &hf_ieee1609dot2_linkageData,
      { "linkageData", "ieee1609dot2.linkageData_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_name,
      { "name", "ieee1609dot2.name",
        FT_STRING, BASE_NONE, NULL, 0,
        "Hostname", HFILL }},
    { &hf_ieee1609dot2_binaryId,
      { "binaryId", "ieee1609dot2.binaryId",
        FT_BYTES, BASE_NONE, NULL, 0,
        "OCTET_STRING_SIZE_1_64", HFILL }},
    { &hf_ieee1609dot2_none,
      { "none", "ieee1609dot2.none_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_iCert,
      { "iCert", "ieee1609dot2.iCert",
        FT_UINT32, BASE_DEC, NULL, 0,
        "IValue", HFILL }},
    { &hf_ieee1609dot2_linkage_value,
      { "linkage-value", "ieee1609dot2.linkage_value",
        FT_BYTES, BASE_NONE, NULL, 0,
        "LinkageValue", HFILL }},
    { &hf_ieee1609dot2_group_linkage_value,
      { "group-linkage-value", "ieee1609dot2.group_linkage_value_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "GroupLinkageValue", HFILL }},
    { &hf_ieee1609dot2_subjectPermissions,
      { "subjectPermissions", "ieee1609dot2.subjectPermissions",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_SubjectPermissions_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_minChainLength,
      { "minChainLength", "ieee1609dot2.minChainLength",
        FT_INT32, BASE_DEC, NULL, 0,
        "INTEGER", HFILL }},
    { &hf_ieee1609dot2_chainLengthRange,
      { "chainLengthRange", "ieee1609dot2.chainLengthRange",
        FT_INT32, BASE_DEC, NULL, 0,
        "INTEGER", HFILL }},
    { &hf_ieee1609dot2_eeType,
      { "eeType", "ieee1609dot2.eeType",
        FT_BYTES, BASE_NONE, NULL, 0,
        "EndEntityType", HFILL }},
    { &hf_ieee1609dot2_SequenceOfPsidGroupPermissions_item,
      { "PsidGroupPermissions", "ieee1609dot2.PsidGroupPermissions_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_explicit,
      { "explicit", "ieee1609dot2.explicit",
        FT_UINT32, BASE_DEC, NULL, 0,
        "SequenceOfPsidSspRange", HFILL }},
    { &hf_ieee1609dot2_verificationKey,
      { "verificationKey", "ieee1609dot2.verificationKey",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_PublicVerificationKey_vals), 0,
        "PublicVerificationKey", HFILL }},
    { &hf_ieee1609dot2_reconstructionValue,
      { "reconstructionValue", "ieee1609dot2.reconstructionValue",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_EccP256CurvePoint_vals), 0,
        "EccP256CurvePoint", HFILL }},
    { &hf_ieee1609dot2_SequenceOfAppExtensions_item,
      { "AppExtension", "ieee1609dot2.AppExtension_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_id_02,
      { "id", "ieee1609dot2.id",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_ExtId_vals), 0,
        "ExtId", HFILL }},
    { &hf_ieee1609dot2_content_03,
      { "content", "ieee1609dot2.content_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfCertIssueExtensions_item,
      { "CertIssueExtension", "ieee1609dot2.CertIssueExtension_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_permissions,
      { "permissions", "ieee1609dot2.permissions",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_T_permissions_vals), 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_specific,
      { "specific", "ieee1609dot2.specific_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_SequenceOfCertRequestExtensions_item,
      { "CertRequestExtension", "ieee1609dot2.CertRequestExtension_element",
        FT_NONE, BASE_NONE, NULL, 0,
        NULL, HFILL }},
    { &hf_ieee1609dot2_permissions_01,
      { "permissions", "ieee1609dot2.permissions",
        FT_UINT32, BASE_DEC, VALS(ieee1609dot2_T_permissions_01_vals), 0,
        "T_permissions_01", HFILL }},
    { &hf_ieee1609dot2_content_04,
      { "content", "ieee1609dot2.content_element",
        FT_NONE, BASE_NONE, NULL, 0,
        "T_content_01", HFILL }},
    { &hf_ieee1609dot2_T_flags_usesCubk,
      { "usesCubk", "ieee1609dot2.T.flags.usesCubk",
        FT_BOOLEAN, 8, NULL, 0x80,
        NULL, HFILL }},
    { &hf_ieee1609dot2_EndEntityType_app,
      { "app", "ieee1609dot2.EndEntityType.app",
        FT_BOOLEAN, 8, NULL, 0x80,
        NULL, HFILL }},
    { &hf_ieee1609dot2_EndEntityType_enrol,
      { "enrol", "ieee1609dot2.EndEntityType.enrol",
        FT_BOOLEAN, 8, NULL, 0x40,
        NULL, HFILL }},
  };

  /* List of subtrees */
  static gint *ett[] = {
    &ett_ieee1609dot2_SequenceOfUint8,
    &ett_ieee1609dot2_SequenceOfUint16,
    &ett_ieee1609dot2_SequenceOfHashedId3,
    &ett_ieee1609dot2_ValidityPeriod,
    &ett_ieee1609dot2_Duration,
    &ett_ieee1609dot2_GeographicRegion,
    &ett_ieee1609dot2_CircularRegion,
    &ett_ieee1609dot2_RectangularRegion,
    &ett_ieee1609dot2_SequenceOfRectangularRegion,
    &ett_ieee1609dot2_PolygonalRegion,
    &ett_ieee1609dot2_TwoDLocation,
    &ett_ieee1609dot2_IdentifiedRegion,
    &ett_ieee1609dot2_SequenceOfIdentifiedRegion,
    &ett_ieee1609dot2_CountryAndRegions,
    &ett_ieee1609dot2_CountryAndSubregions,
    &ett_ieee1609dot2_RegionAndSubregions,
    &ett_ieee1609dot2_SequenceOfRegionAndSubregions,
    &ett_ieee1609dot2_ThreeDLocation,
    &ett_ieee1609dot2_Signature,
    &ett_ieee1609dot2_EcdsaP256Signature,
    &ett_ieee1609dot2_EcdsaP384Signature,
    &ett_ieee1609dot2_EcsigP256Signature,
    &ett_ieee1609dot2_EccP256CurvePoint,
    &ett_ieee1609dot2_T_uncompressedP256,
    &ett_ieee1609dot2_EccP384CurvePoint,
    &ett_ieee1609dot2_T_uncompressedP384,
    &ett_ieee1609dot2_EciesP256EncryptedKey,
    &ett_ieee1609dot2_EcencP256EncryptedKey,
    &ett_ieee1609dot2_EncryptionKey,
    &ett_ieee1609dot2_PublicEncryptionKey,
    &ett_ieee1609dot2_BasePublicEncryptionKey,
    &ett_ieee1609dot2_PublicVerificationKey,
    &ett_ieee1609dot2_SymmetricEncryptionKey,
    &ett_ieee1609dot2_PsidSsp,
    &ett_ieee1609dot2_SequenceOfPsidSsp,
    &ett_ieee1609dot2_ServiceSpecificPermissions,
    &ett_ieee1609dot2_PsidSspRange,
    &ett_ieee1609dot2_SequenceOfPsidSspRange,
    &ett_ieee1609dot2_SspRange,
    &ett_ieee1609dot2_BitmapSspRange,
    &ett_ieee1609dot2_SequenceOfOctetString,
    &ett_ieee1609dot2_GroupLinkageValue,
    &ett_ieee1609dot2_SequenceOfLinkageSeed,
    &ett_ieee1609dot2_CrlContents,
    &ett_ieee1609dot2_CrlPriorityInfo,
    &ett_ieee1609dot2_TypeSpecificCrlContents,
    &ett_ieee1609dot2_ToBeSignedHashIdCrl,
    &ett_ieee1609dot2_SequenceOfHashBasedRevocationInfo,
    &ett_ieee1609dot2_HashBasedRevocationInfo,
    &ett_ieee1609dot2_ToBeSignedLinkageValueCrl,
    &ett_ieee1609dot2_SequenceOfJMaxGroup,
    &ett_ieee1609dot2_JMaxGroup,
    &ett_ieee1609dot2_SequenceOfLAGroup,
    &ett_ieee1609dot2_LAGroup,
    &ett_ieee1609dot2_SequenceOfIMaxGroup,
    &ett_ieee1609dot2_IMaxGroup,
    &ett_ieee1609dot2_SequenceOfIndividualRevocation,
    &ett_ieee1609dot2_IndividualRevocation,
    &ett_ieee1609dot2_SequenceOfGroupCrlEntry,
    &ett_ieee1609dot2_GroupCrlEntry,
    &ett_ieee1609dot2_ToBeSignedLinkageValueCrlWithAlgIdentifier,
    &ett_ieee1609dot2_SequenceOfGroupSingleSeedCrlEntry,
    &ett_ieee1609dot2_GroupSingleSeedCrlEntry,
    &ett_ieee1609dot2_SecuredCrl,
    &ett_ieee1609dot2_SecuredCrlContent,
    &ett_ieee1609dot2_CrlSignedData,
    &ett_ieee1609dot2_CrlToBeSignedData,
    &ett_ieee1609dot2_CrlSignedDataPayload,
    &ett_ieee1609dot2_Ieee1609Dot2CrlData,
    &ett_ieee1609dot2_Ieee1609Dot2CrlContent,
    &ett_ieee1609dot2_Ieee1609Dot2Data,
    &ett_ieee1609dot2_Ieee1609Dot2Content,
    &ett_ieee1609dot2_SignedData,
    &ett_ieee1609dot2_ToBeSignedData,
    &ett_ieee1609dot2_SignedDataPayload,
    &ett_ieee1609dot2_HashedData,
    &ett_ieee1609dot2_HeaderInfo,
    &ett_ieee1609dot2_MissingCrlIdentifier,
    &ett_ieee1609dot2_ContributedExtensionBlocks,
    &ett_ieee1609dot2_ContributedExtensionBlock,
    &ett_ieee1609dot2_T_extns,
    &ett_ieee1609dot2_SignerIdentifier,
    &ett_ieee1609dot2_EncryptedData,
    &ett_ieee1609dot2_RecipientInfo,
    &ett_ieee1609dot2_SequenceOfRecipientInfo,
    &ett_ieee1609dot2_SymmRecipientInfo,
    &ett_ieee1609dot2_PKRecipientInfo,
    &ett_ieee1609dot2_EncryptedDataEncryptionKey,
    &ett_ieee1609dot2_SymmetricCiphertext,
    &ett_ieee1609dot2_One28BitCcmCiphertext,
    &ett_ieee1609dot2_SequenceOfCertificate,
    &ett_ieee1609dot2_CertificateBase,
    &ett_ieee1609dot2_IssuerIdentifier,
    &ett_ieee1609dot2_ToBeSignedCertificate,
    &ett_ieee1609dot2_T_flags,
    &ett_ieee1609dot2_CertificateId,
    &ett_ieee1609dot2_LinkageData,
    &ett_ieee1609dot2_EndEntityType,
    &ett_ieee1609dot2_PsidGroupPermissions,
    &ett_ieee1609dot2_SequenceOfPsidGroupPermissions,
    &ett_ieee1609dot2_SubjectPermissions,
    &ett_ieee1609dot2_VerificationKeyIndicator,
    &ett_ieee1609dot2_SequenceOfAppExtensions,
    &ett_ieee1609dot2_AppExtension,
    &ett_ieee1609dot2_SequenceOfCertIssueExtensions,
    &ett_ieee1609dot2_CertIssueExtension,
    &ett_ieee1609dot2_T_permissions,
    &ett_ieee1609dot2_SequenceOfCertRequestExtensions,
    &ett_ieee1609dot2_CertRequestExtension,
    &ett_ieee1609dot2_T_permissions_01,
        &ett_ieee1609dot2_ssp,
  };

  /* Register protocol */
  proto_ieee1609dot2 = proto_register_protocol(PNAME, PSNAME, PFNAME);

  /* Register fields and subtrees */
  proto_register_field_array(proto_ieee1609dot2, hf, array_length(hf));
  proto_register_subtree_array(ett, array_length(ett));

  proto_ieee1609dot2_handle = register_dissector("ieee1609dot2.data", dissect_Ieee1609Dot2Data_PDU, proto_ieee1609dot2);

  // See TS17419_ITS-AID_AssignedNumbers
  unsecured_data_subdissector_table = register_dissector_table("ieee1609dot2.psid",
        "ATS-AID/PSID based dissector for unsecured/signed data", proto_ieee1609dot2, FT_UINT32, BASE_HEX);
  ssp_subdissector_table = register_dissector_table("ieee1609dot2.ssp",
        "ATS-AID/PSID based dissector for Service Specific Permissions (SSP)", proto_ieee1609dot2, FT_UINT32, BASE_HEX);
}


void proto_reg_handoff_ieee1609dot2(void) {
    dissector_add_string("media_type", "application/x-its", proto_ieee1609dot2_handle);
    dissector_add_string("media_type", "application/x-its-request", proto_ieee1609dot2_handle);
    dissector_add_string("media_type", "application/x-its-response", proto_ieee1609dot2_handle);

    dissector_add_uint("ieee1609dot2.psid", psid_certificate_revocation_list_application, create_dissector_handle(dissect_SecuredCrl_PDU, proto_ieee1609dot2));
    //dissector_add_uint_range_with_preference("udp.port", "56000,56001", proto_ieee1609dot2_handle);

}