Vanetza
Loading...
Searching...
No Matches
Signature.c
1/*
2 * Generated by asn1c
3 * From ASN.1 module "Ieee1609Dot2BaseTypes"
4 * found in "Ieee1609Dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R`
6 */
7
8#include "Signature.h"
9
10#if !defined(ASN_DISABLE_OER_SUPPORT)
11asn_oer_constraints_t asn_OER_type_Vanetza_Security_Signature_constr_1 CC_NOTUSED = {
12 { 0, 0 },
13 -1};
14#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
15#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
16asn_per_constraints_t asn_PER_type_Vanetza_Security_Signature_constr_1 CC_NOTUSED = {
17 { APC_CONSTRAINED | APC_EXTENSIBLE, 1, 1, 0, 1 } /* (0..1,...) */,
18 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
19 0, 0 /* No PER value map */
20};
21#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
22asn_TYPE_member_t asn_MBR_Vanetza_Security_Signature_1[] = {
23 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Signature, choice.ecdsaNistP256Signature),
24 (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
25 -1, /* IMPLICIT tag at current level */
26 &asn_DEF_Vanetza_Security_EcdsaP256Signature,
27 0,
28 {
29#if !defined(ASN_DISABLE_OER_SUPPORT)
30 0,
31#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
32#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
33 0,
34#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
35#if !defined(ASN_DISABLE_JER_SUPPORT)
36 0,
37#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
38 0
39 },
40 0, 0, /* No default value */
41 "ecdsaNistP256Signature"
42 },
43 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Signature, choice.ecdsaBrainpoolP256r1Signature),
44 (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
45 -1, /* IMPLICIT tag at current level */
46 &asn_DEF_Vanetza_Security_EcdsaP256Signature,
47 0,
48 {
49#if !defined(ASN_DISABLE_OER_SUPPORT)
50 0,
51#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
52#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
53 0,
54#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
55#if !defined(ASN_DISABLE_JER_SUPPORT)
56 0,
57#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
58 0
59 },
60 0, 0, /* No default value */
61 "ecdsaBrainpoolP256r1Signature"
62 },
63 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Signature, choice.ecdsaBrainpoolP384r1Signature),
64 (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
65 -1, /* IMPLICIT tag at current level */
66 &asn_DEF_Vanetza_Security_EcdsaP384Signature,
67 0,
68 {
69#if !defined(ASN_DISABLE_OER_SUPPORT)
70 0,
71#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
72#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
73 0,
74#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
75#if !defined(ASN_DISABLE_JER_SUPPORT)
76 0,
77#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
78 0
79 },
80 0, 0, /* No default value */
81 "ecdsaBrainpoolP384r1Signature"
82 },
83 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Signature, choice.ecdsaNistP384Signature),
84 (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
85 -1, /* IMPLICIT tag at current level */
86 &asn_DEF_Vanetza_Security_EcdsaP384Signature,
87 0,
88 {
89#if !defined(ASN_DISABLE_OER_SUPPORT)
90 0,
91#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
92#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
93 0,
94#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
95#if !defined(ASN_DISABLE_JER_SUPPORT)
96 0,
97#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
98 0
99 },
100 0, 0, /* No default value */
101 "ecdsaNistP384Signature"
102 },
103 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Signature, choice.sm2Signature),
104 (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
105 -1, /* IMPLICIT tag at current level */
106 &asn_DEF_Vanetza_Security_EcsigP256Signature,
107 0,
108 {
109#if !defined(ASN_DISABLE_OER_SUPPORT)
110 0,
111#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
112#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
113 0,
114#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
115#if !defined(ASN_DISABLE_JER_SUPPORT)
116 0,
117#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
118 0
119 },
120 0, 0, /* No default value */
121 "sm2Signature"
122 },
123 { ATF_NOFLAGS, 0, offsetof(struct Vanetza_Security_Signature, choice.fnDsa512Signature),
124 (ASN_TAG_CLASS_CONTEXT | (5 << 2)),
125 -1, /* IMPLICIT tag at current level */
126 &asn_DEF_Vanetza_Security_FnDsa512Signature,
127 0,
128 {
129#if !defined(ASN_DISABLE_OER_SUPPORT)
130 0,
131#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
132#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
133 0,
134#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
135#if !defined(ASN_DISABLE_JER_SUPPORT)
136 0,
137#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
138 0
139 },
140 0, 0, /* No default value */
141 "fnDsa512Signature"
142 },
143};
144static const asn_TYPE_tag2member_t asn_MAP_Vanetza_Security_Signature_tag2el_1[] = {
145 { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecdsaNistP256Signature */
146 { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ecdsaBrainpoolP256r1Signature */
147 { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* ecdsaBrainpoolP384r1Signature */
148 { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* ecdsaNistP384Signature */
149 { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 }, /* sm2Signature */
150 { (ASN_TAG_CLASS_CONTEXT | (5 << 2)), 5, 0, 0 } /* fnDsa512Signature */
151};
152asn_CHOICE_specifics_t asn_SPC_Vanetza_Security_Signature_specs_1 = {
153 sizeof(struct Vanetza_Security_Signature),
154 offsetof(struct Vanetza_Security_Signature, _asn_ctx),
155 offsetof(struct Vanetza_Security_Signature, present),
156 sizeof(((struct Vanetza_Security_Signature *)0)->present),
157 asn_MAP_Vanetza_Security_Signature_tag2el_1,
158 6, /* Count of tags in the map */
159 0, 0,
160 2 /* Extensions start */
161};
162asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_Signature = {
163 "Signature",
164 "Signature",
165 &asn_OP_CHOICE,
166 0, /* No effective tags (pointer) */
167 0, /* No effective tags (count) */
168 0, /* No tags (pointer) */
169 0, /* No tags (count) */
170 {
171#if !defined(ASN_DISABLE_OER_SUPPORT)
172 &asn_OER_type_Vanetza_Security_Signature_constr_1,
173#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
174#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
175 &asn_PER_type_Vanetza_Security_Signature_constr_1,
176#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
177#if !defined(ASN_DISABLE_JER_SUPPORT)
178 0,
179#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
180 CHOICE_constraint
181 },
182 asn_MBR_Vanetza_Security_Signature_1,
183 6, /* Elements count */
184 &asn_SPC_Vanetza_Security_Signature_specs_1 /* Additional specs */
185};