ITS
PublicKey.c
Go to the documentation of this file.
1 /*
2  * Generated by asn1c-0.9.27 (http://lionet.info/asn1c)
3  * From ASN.1 module "Secured-Pdu-Descriptions"
4  * found in "Secured.asn"
5  */
6 
7 #include "PublicKey.h"
8 
9 static asn_per_constraints_t asn_PER_type_public_key_constr_3 GCC_NOTUSED = {
10  { APC_CONSTRAINED, 2, 2, 0, 2 } /* (0..2) */,
11  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
12  0, 0 /* No PER value map */
13 };
15  { ATF_NOFLAGS, 0, offsetof(struct ecdsa_nistp256_with_sha256_public_key, public_key),
16  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
17  -1, /* IMPLICIT tag at current level */
19  0, /* Defer constraints checking to the member type */
20  0, /* No PER visible constraints */
21  0,
22  "public-key"
23  },
24 };
26  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
27  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
28 };
30  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* public-key */
31 };
33  sizeof(struct ecdsa_nistp256_with_sha256_public_key),
34  offsetof(struct ecdsa_nistp256_with_sha256_public_key, _asn_ctx),
36  1, /* Count of tags in the map */
37  0, 0, 0, /* Optional elements (not needed) */
38  -1, /* Start extensions */
39  -1 /* Stop extensions */
40 };
41 static /* Use -fall-defs-global to expose */
43  "ecdsa-nistp256-with-sha256-public-key",
44  "ecdsa-nistp256-with-sha256-public-key",
54  0, /* Use generic outmost tag fetcher */
61  0, /* No PER visible constraints */
63  1, /* Elements count */
65 };
66 
68  { ATF_NOFLAGS, 0, offsetof(struct ecies_nistp256_public_key, supported_symm_alg),
69  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
70  -1, /* IMPLICIT tag at current level */
72  0, /* Defer constraints checking to the member type */
73  0, /* No PER visible constraints */
74  0,
75  "supported-symm-alg"
76  },
77  { ATF_NOFLAGS, 0, offsetof(struct ecies_nistp256_public_key, public_key),
78  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
79  -1, /* IMPLICIT tag at current level */
81  0, /* Defer constraints checking to the member type */
82  0, /* No PER visible constraints */
83  0,
84  "public-key"
85  },
86 };
88  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
89  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
90 };
92  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* supported-symm-alg */
93  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* public-key */
94 };
96  sizeof(struct ecies_nistp256_public_key),
97  offsetof(struct ecies_nistp256_public_key, _asn_ctx),
99  2, /* Count of tags in the map */
100  0, 0, 0, /* Optional elements (not needed) */
101  -1, /* Start extensions */
102  -1 /* Stop extensions */
103 };
104 static /* Use -fall-defs-global to expose */
106  "ecies-nistp256-public-key",
107  "ecies-nistp256-public-key",
117  0, /* Use generic outmost tag fetcher */
120  /sizeof(asn_DEF_ecies_nistp256_public_key_tags_6[0]) - 1, /* 1 */
121  asn_DEF_ecies_nistp256_public_key_tags_6, /* Same as above */
123  /sizeof(asn_DEF_ecies_nistp256_public_key_tags_6[0]), /* 2 */
124  0, /* No PER visible constraints */
126  2, /* Elements count */
127  &asn_SPC_ecies_nistp256_public_key_specs_6 /* Additional specs */
128 };
129 
131  { ATF_NOFLAGS, 0, offsetof(struct unknown_public_key, other_key),
132  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
133  -1, /* IMPLICIT tag at current level */
135  0, /* Defer constraints checking to the member type */
136  0, /* No PER visible constraints */
137  0,
138  "other-key"
139  },
140 };
142  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
143  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
144 };
146  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* other-key */
147 };
149  sizeof(struct unknown_public_key),
150  offsetof(struct unknown_public_key, _asn_ctx),
152  1, /* Count of tags in the map */
153  0, 0, 0, /* Optional elements (not needed) */
154  -1, /* Start extensions */
155  -1 /* Stop extensions */
156 };
157 static /* Use -fall-defs-global to expose */
159  "unknown-public-key",
160  "unknown-public-key",
170  0, /* Use generic outmost tag fetcher */
173  /sizeof(asn_DEF_unknown_public_key_tags_9[0]) - 1, /* 1 */
174  asn_DEF_unknown_public_key_tags_9, /* Same as above */
176  /sizeof(asn_DEF_unknown_public_key_tags_9[0]), /* 2 */
177  0, /* No PER visible constraints */
179  1, /* Elements count */
180  &asn_SPC_unknown_public_key_specs_9 /* Additional specs */
181 };
182 
184  { ATF_NOFLAGS, 0, offsetof(struct public_key, choice.ecdsa_nistp256_with_sha256_public_key),
185  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
186  0,
188  0, /* Defer constraints checking to the member type */
189  0, /* No PER visible constraints */
190  0,
191  "ecdsa-nistp256-with-sha256-public-key"
192  },
193  { ATF_NOFLAGS, 0, offsetof(struct public_key, choice.ecies_nistp256_public_key),
194  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
195  0,
197  0, /* Defer constraints checking to the member type */
198  0, /* No PER visible constraints */
199  0,
200  "ecies-nistp256-public-key"
201  },
202  { ATF_NOFLAGS, 0, offsetof(struct public_key, choice.unknown_public_key),
203  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
204  0,
206  0, /* Defer constraints checking to the member type */
207  0, /* No PER visible constraints */
208  0,
209  "unknown-public-key"
210  },
211 };
213  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecdsa-nistp256-with-sha256-public-key */
214  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* ecies-nistp256-public-key */
215  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* unknown-public-key */
216 };
218  sizeof(struct public_key),
219  offsetof(struct public_key, _asn_ctx),
220  offsetof(struct public_key, present),
221  sizeof(((struct public_key *)0)->present),
223  3, /* Count of tags in the map */
224  0,
225  -1 /* Extensions start */
226 };
227 static /* Use -fall-defs-global to expose */
229  "public-key",
230  "public-key",
231  CHOICE_free,
232  CHOICE_print,
241  0, /* No effective tags (pointer) */
242  0, /* No effective tags (count) */
243  0, /* No tags (pointer) */
244  0, /* No tags (count) */
245  &asn_PER_type_public_key_constr_3,
247  3, /* Elements count */
248  &asn_SPC_public_key_specs_3 /* Additional specs */
249 };
250 
252  { ATF_NOFLAGS, 0, offsetof(struct PublicKey, algorithm),
253  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
254  -1, /* IMPLICIT tag at current level */
256  0, /* Defer constraints checking to the member type */
257  0, /* No PER visible constraints */
258  0,
259  "algorithm"
260  },
261  { ATF_NOFLAGS, 0, offsetof(struct PublicKey, public_key),
262  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
263  +1, /* EXPLICIT tag at current level */
265  0, /* Defer constraints checking to the member type */
266  0, /* No PER visible constraints */
267  0,
268  "public-key"
269  },
270 };
272  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
273 };
275  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* algorithm */
276  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* public-key */
277 };
279  sizeof(struct PublicKey),
280  offsetof(struct PublicKey, _asn_ctx),
282  2, /* Count of tags in the map */
283  0, 0, 0, /* Optional elements (not needed) */
284  -1, /* Start extensions */
285  -1 /* Stop extensions */
286 };
288  "PublicKey",
289  "PublicKey",
299  0, /* Use generic outmost tag fetcher */
302  /sizeof(asn_DEF_PublicKey_tags_1[0]), /* 1 */
303  asn_DEF_PublicKey_tags_1, /* Same as above */
305  /sizeof(asn_DEF_PublicKey_tags_1[0]), /* 1 */
306  0, /* No PER visible constraints */
308  2, /* Elements count */
309  &asn_SPC_PublicKey_specs_1 /* Additional specs */
310 };
311 
static asn_TYPE_member_t asn_MBR_public_key_3[]
Definition: PublicKey.c:183
#define offsetof(s, m)
Definition: asn_system.h:115
static asn_SEQUENCE_specifics_t asn_SPC_ecies_nistp256_public_key_specs_6
Definition: PublicKey.c:95
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
static asn_SEQUENCE_specifics_t asn_SPC_PublicKey_specs_1
Definition: PublicKey.c:278
static asn_TYPE_descriptor_t asn_DEF_public_key_3
Definition: PublicKey.c:228
ber_type_decoder_f SEQUENCE_decode_ber
asn_TYPE_descriptor_t asn_DEF_EccPoint
Definition: EccPoint.c:368
asn_TYPE_descriptor_t asn_DEF_PublicKey
Definition: PublicKey.c:287
static asn_TYPE_tag2member_t asn_MAP_public_key_tag2el_3[]
Definition: PublicKey.c:212
static asn_CHOICE_specifics_t asn_SPC_public_key_specs_3
Definition: PublicKey.c:217
asn_TYPE_descriptor_t asn_DEF_PublicKeyAlgorithm
der_type_encoder_f SEQUENCE_encode_der
asn_constr_check_f CHOICE_constraint
Definition: constr_CHOICE.h:44
static ber_tlv_tag_t asn_DEF_ecdsa_nistp256_with_sha256_public_key_tags_4[]
Definition: PublicKey.c:25
static asn_TYPE_member_t asn_MBR_unknown_public_key_9[]
Definition: PublicKey.c:130
ber_type_decoder_f CHOICE_decode_ber
Definition: constr_CHOICE.h:45
static ber_tlv_tag_t asn_DEF_PublicKey_tags_1[]
Definition: PublicKey.c:271
asn_struct_print_f SEQUENCE_print
per_type_decoder_f SEQUENCE_decode_uper
static asn_TYPE_descriptor_t asn_DEF_ecdsa_nistp256_with_sha256_public_key_4
Definition: PublicKey.c:42
per_type_encoder_f SEQUENCE_encode_uper
asn_struct_ctx_t _asn_ctx
Definition: PublicKey.h:65
asn_constr_check_f SEQUENCE_constraint
asn_TYPE_descriptor_t asn_DEF_Opaque
Definition: Opaque.c:45
xer_type_decoder_f SEQUENCE_decode_xer
static asn_per_constraints_t asn_PER_type_public_key_constr_3 GCC_NOTUSED
Definition: PublicKey.c:9
static ber_tlv_tag_t asn_DEF_ecies_nistp256_public_key_tags_6[]
Definition: PublicKey.c:87
static asn_SEQUENCE_specifics_t asn_SPC_ecdsa_nistp256_with_sha256_public_key_specs_4
Definition: PublicKey.c:32
der_type_encoder_f CHOICE_encode_der
Definition: constr_CHOICE.h:46
static asn_TYPE_member_t asn_MBR_ecies_nistp256_public_key_6[]
Definition: PublicKey.c:67
static asn_TYPE_member_t asn_MBR_ecdsa_nistp256_with_sha256_public_key_4[]
Definition: PublicKey.c:14
per_type_decoder_f CHOICE_decode_uper
Definition: constr_CHOICE.h:49
asn_struct_free_f SEQUENCE_free
asn_TYPE_descriptor_t asn_DEF_SymmetricAlgorithm
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
static asn_TYPE_tag2member_t asn_MAP_ecdsa_nistp256_with_sha256_public_key_tag2el_4[]
Definition: PublicKey.c:29
static asn_TYPE_descriptor_t asn_DEF_ecies_nistp256_public_key_6
Definition: PublicKey.c:105
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
static asn_TYPE_tag2member_t asn_MAP_unknown_public_key_tag2el_9[]
Definition: PublicKey.c:145
per_type_encoder_f CHOICE_encode_uper
Definition: constr_CHOICE.h:50
static asn_TYPE_member_t asn_MBR_PublicKey_1[]
Definition: PublicKey.c:251
asn_outmost_tag_f CHOICE_outmost_tag
Definition: constr_CHOICE.h:51
xer_type_encoder_f SEQUENCE_encode_xer
static asn_SEQUENCE_specifics_t asn_SPC_unknown_public_key_specs_9
Definition: PublicKey.c:148
static ber_tlv_tag_t asn_DEF_unknown_public_key_tags_9[]
Definition: PublicKey.c:141
static asn_TYPE_tag2member_t asn_MAP_PublicKey_tag2el_1[]
Definition: PublicKey.c:274
static asn_TYPE_descriptor_t asn_DEF_unknown_public_key_9
Definition: PublicKey.c:158
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
static asn_TYPE_tag2member_t asn_MAP_ecies_nistp256_public_key_tag2el_6[]
Definition: PublicKey.c:91
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42