ITS
EccPoint.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 "EccPoint.h"
8 
9 static asn_per_constraints_t asn_PER_type_ecc_point_constr_4 GCC_NOTUSED = {
10  { APC_CONSTRAINED, 3, 3, 0, 4 } /* (0..4) */,
11  { APC_UNCONSTRAINED, -1, -1, 0, 0 },
12  0, 0 /* No PER value map */
13 };
15  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
16  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
17 };
19  sizeof(struct x_cordinate_only),
20  offsetof(struct x_cordinate_only, _asn_ctx),
21  0, /* No top level tags */
22  0, /* No tags in the map */
23  0, 0, 0, /* Optional elements (not needed) */
24  -1, /* Start extensions */
25  -1 /* Stop extensions */
26 };
27 static /* Use -fall-defs-global to expose */
29  "x-cordinate-only",
30  "x-cordinate-only",
40  0, /* Use generic outmost tag fetcher */
43  /sizeof(asn_DEF_x_cordinate_only_tags_5[0]) - 1, /* 1 */
44  asn_DEF_x_cordinate_only_tags_5, /* Same as above */
46  /sizeof(asn_DEF_x_cordinate_only_tags_5[0]), /* 2 */
47  0, /* No PER visible constraints */
48  0, 0, /* No members */
49  &asn_SPC_x_cordinate_only_specs_5 /* Additional specs */
50 };
51 
53  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
54  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
55 };
57  sizeof(struct compressed_lsb_y_0),
58  offsetof(struct compressed_lsb_y_0, _asn_ctx),
59  0, /* No top level tags */
60  0, /* No tags in the map */
61  0, 0, 0, /* Optional elements (not needed) */
62  -1, /* Start extensions */
63  -1 /* Stop extensions */
64 };
65 static /* Use -fall-defs-global to expose */
67  "compressed-lsb-y-0",
68  "compressed-lsb-y-0",
78  0, /* Use generic outmost tag fetcher */
81  /sizeof(asn_DEF_compressed_lsb_y_0_tags_6[0]) - 1, /* 1 */
82  asn_DEF_compressed_lsb_y_0_tags_6, /* Same as above */
84  /sizeof(asn_DEF_compressed_lsb_y_0_tags_6[0]), /* 2 */
85  0, /* No PER visible constraints */
86  0, 0, /* No members */
87  &asn_SPC_compressed_lsb_y_0_specs_6 /* Additional specs */
88 };
89 
91  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
92  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
93 };
95  sizeof(struct compressed_lsb_y_1),
96  offsetof(struct compressed_lsb_y_1, _asn_ctx),
97  0, /* No top level tags */
98  0, /* No tags in the map */
99  0, 0, 0, /* Optional elements (not needed) */
100  -1, /* Start extensions */
101  -1 /* Stop extensions */
102 };
103 static /* Use -fall-defs-global to expose */
105  "compressed-lsb-y-1",
106  "compressed-lsb-y-1",
116  0, /* Use generic outmost tag fetcher */
119  /sizeof(asn_DEF_compressed_lsb_y_1_tags_7[0]) - 1, /* 1 */
120  asn_DEF_compressed_lsb_y_1_tags_7, /* Same as above */
122  /sizeof(asn_DEF_compressed_lsb_y_1_tags_7[0]), /* 2 */
123  0, /* No PER visible constraints */
124  0, 0, /* No members */
125  &asn_SPC_compressed_lsb_y_1_specs_7 /* Additional specs */
126 };
127 
129  { ATF_NOFLAGS, 0, offsetof(struct uncompressed, y),
130  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
131  -1, /* IMPLICIT tag at current level */
133  0, /* Defer constraints checking to the member type */
134  0, /* No PER visible constraints */
135  0,
136  "y"
137  },
138 };
140  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
141  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
142 };
144  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* y */
145 };
147  sizeof(struct uncompressed),
148  offsetof(struct uncompressed, _asn_ctx),
150  1, /* Count of tags in the map */
151  0, 0, 0, /* Optional elements (not needed) */
152  -1, /* Start extensions */
153  -1 /* Stop extensions */
154 };
155 static /* Use -fall-defs-global to expose */
157  "uncompressed",
158  "uncompressed",
168  0, /* Use generic outmost tag fetcher */
171  /sizeof(asn_DEF_uncompressed_tags_8[0]) - 1, /* 1 */
172  asn_DEF_uncompressed_tags_8, /* Same as above */
174  /sizeof(asn_DEF_uncompressed_tags_8[0]), /* 2 */
175  0, /* No PER visible constraints */
177  1, /* Elements count */
178  &asn_SPC_uncompressed_specs_8 /* Additional specs */
179 };
180 
182  { ATF_NOFLAGS, 0, offsetof(struct unknown_ecc_point, data),
183  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
184  -1, /* IMPLICIT tag at current level */
186  0, /* Defer constraints checking to the member type */
187  0, /* No PER visible constraints */
188  0,
189  "data"
190  },
191 };
193  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
194  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
195 };
197  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* data */
198 };
200  sizeof(struct unknown_ecc_point),
201  offsetof(struct unknown_ecc_point, _asn_ctx),
203  1, /* Count of tags in the map */
204  0, 0, 0, /* Optional elements (not needed) */
205  -1, /* Start extensions */
206  -1 /* Stop extensions */
207 };
208 static /* Use -fall-defs-global to expose */
210  "unknown-ecc-point",
211  "unknown-ecc-point",
221  0, /* Use generic outmost tag fetcher */
224  /sizeof(asn_DEF_unknown_ecc_point_tags_10[0]) - 1, /* 1 */
225  asn_DEF_unknown_ecc_point_tags_10, /* Same as above */
227  /sizeof(asn_DEF_unknown_ecc_point_tags_10[0]), /* 2 */
228  0, /* No PER visible constraints */
230  1, /* Elements count */
231  &asn_SPC_unknown_ecc_point_specs_10 /* Additional specs */
232 };
233 
235  { ATF_NOFLAGS, 0, offsetof(struct ecc_point, choice.x_cordinate_only),
236  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
237  0,
239  0, /* Defer constraints checking to the member type */
240  0, /* No PER visible constraints */
241  0,
242  "x-cordinate-only"
243  },
244  { ATF_NOFLAGS, 0, offsetof(struct ecc_point, choice.compressed_lsb_y_0),
245  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
246  0,
248  0, /* Defer constraints checking to the member type */
249  0, /* No PER visible constraints */
250  0,
251  "compressed-lsb-y-0"
252  },
253  { ATF_NOFLAGS, 0, offsetof(struct ecc_point, choice.compressed_lsb_y_1),
254  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
255  0,
257  0, /* Defer constraints checking to the member type */
258  0, /* No PER visible constraints */
259  0,
260  "compressed-lsb-y-1"
261  },
262  { ATF_NOFLAGS, 0, offsetof(struct ecc_point, choice.uncompressed),
263  (ASN_TAG_CLASS_CONTEXT | (3 << 2)),
264  0,
266  0, /* Defer constraints checking to the member type */
267  0, /* No PER visible constraints */
268  0,
269  "uncompressed"
270  },
271  { ATF_NOFLAGS, 0, offsetof(struct ecc_point, choice.unknown_ecc_point),
272  (ASN_TAG_CLASS_CONTEXT | (4 << 2)),
273  0,
275  0, /* Defer constraints checking to the member type */
276  0, /* No PER visible constraints */
277  0,
278  "unknown-ecc-point"
279  },
280 };
282  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* x-cordinate-only */
283  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* compressed-lsb-y-0 */
284  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 }, /* compressed-lsb-y-1 */
285  { (ASN_TAG_CLASS_CONTEXT | (3 << 2)), 3, 0, 0 }, /* uncompressed */
286  { (ASN_TAG_CLASS_CONTEXT | (4 << 2)), 4, 0, 0 } /* unknown-ecc-point */
287 };
289  sizeof(struct ecc_point),
290  offsetof(struct ecc_point, _asn_ctx),
291  offsetof(struct ecc_point, present),
292  sizeof(((struct ecc_point *)0)->present),
294  5, /* Count of tags in the map */
295  0,
296  -1 /* Extensions start */
297 };
298 static /* Use -fall-defs-global to expose */
300  "ecc-point",
301  "ecc-point",
302  CHOICE_free,
303  CHOICE_print,
312  0, /* No effective tags (pointer) */
313  0, /* No effective tags (count) */
314  0, /* No tags (pointer) */
315  0, /* No tags (count) */
316  &asn_PER_type_ecc_point_constr_4,
318  5, /* Elements count */
319  &asn_SPC_ecc_point_specs_4 /* Additional specs */
320 };
321 
323  { ATF_NOFLAGS, 0, offsetof(struct EccPoint, type),
324  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
325  -1, /* IMPLICIT tag at current level */
327  0, /* Defer constraints checking to the member type */
328  0, /* No PER visible constraints */
329  0,
330  "type"
331  },
332  { ATF_NOFLAGS, 0, offsetof(struct EccPoint, x),
333  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
334  -1, /* IMPLICIT tag at current level */
336  0, /* Defer constraints checking to the member type */
337  0, /* No PER visible constraints */
338  0,
339  "x"
340  },
341  { ATF_NOFLAGS, 0, offsetof(struct EccPoint, ecc_point),
342  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
343  +1, /* EXPLICIT tag at current level */
345  0, /* Defer constraints checking to the member type */
346  0, /* No PER visible constraints */
347  0,
348  "ecc-point"
349  },
350 };
352  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
353 };
355  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* type */
356  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* x */
357  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* ecc-point */
358 };
360  sizeof(struct EccPoint),
361  offsetof(struct EccPoint, _asn_ctx),
363  3, /* Count of tags in the map */
364  0, 0, 0, /* Optional elements (not needed) */
365  -1, /* Start extensions */
366  -1 /* Stop extensions */
367 };
369  "EccPoint",
370  "EccPoint",
380  0, /* Use generic outmost tag fetcher */
383  /sizeof(asn_DEF_EccPoint_tags_1[0]), /* 1 */
384  asn_DEF_EccPoint_tags_1, /* Same as above */
386  /sizeof(asn_DEF_EccPoint_tags_1[0]), /* 1 */
387  0, /* No PER visible constraints */
389  3, /* Elements count */
390  &asn_SPC_EccPoint_specs_1 /* Additional specs */
391 };
392 
asn_TYPE_descriptor_t asn_DEF_EccPoint
Definition: EccPoint.c:368
static ber_tlv_tag_t asn_DEF_x_cordinate_only_tags_5[]
Definition: EccPoint.c:14
static asn_TYPE_descriptor_t asn_DEF_x_cordinate_only_5
Definition: EccPoint.c:28
#define offsetof(s, m)
Definition: asn_system.h:115
static asn_SEQUENCE_specifics_t asn_SPC_unknown_ecc_point_specs_10
Definition: EccPoint.c:199
static asn_TYPE_member_t asn_MBR_unknown_ecc_point_10[]
Definition: EccPoint.c:181
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
static asn_TYPE_tag2member_t asn_MAP_EccPoint_tag2el_1[]
Definition: EccPoint.c:354
ber_type_decoder_f SEQUENCE_decode_ber
static asn_CHOICE_specifics_t asn_SPC_ecc_point_specs_4
Definition: EccPoint.c:288
static ber_tlv_tag_t asn_DEF_uncompressed_tags_8[]
Definition: EccPoint.c:139
static ber_tlv_tag_t asn_DEF_EccPoint_tags_1[]
Definition: EccPoint.c:351
der_type_encoder_f SEQUENCE_encode_der
asn_constr_check_f CHOICE_constraint
Definition: constr_CHOICE.h:44
static asn_SEQUENCE_specifics_t asn_SPC_uncompressed_specs_8
Definition: EccPoint.c:146
static asn_SEQUENCE_specifics_t asn_SPC_compressed_lsb_y_0_specs_6
Definition: EccPoint.c:56
static asn_TYPE_tag2member_t asn_MAP_uncompressed_tag2el_8[]
Definition: EccPoint.c:143
static asn_SEQUENCE_specifics_t asn_SPC_x_cordinate_only_specs_5
Definition: EccPoint.c:18
ber_type_decoder_f CHOICE_decode_ber
Definition: constr_CHOICE.h:45
asn_struct_print_f SEQUENCE_print
per_type_decoder_f SEQUENCE_decode_uper
per_type_encoder_f SEQUENCE_encode_uper
asn_constr_check_f SEQUENCE_constraint
asn_TYPE_descriptor_t asn_DEF_Opaque
Definition: Opaque.c:45
static asn_per_constraints_t asn_PER_type_ecc_point_constr_4 GCC_NOTUSED
Definition: EccPoint.c:9
xer_type_decoder_f SEQUENCE_decode_xer
static asn_TYPE_descriptor_t asn_DEF_ecc_point_4
Definition: EccPoint.c:299
static asn_SEQUENCE_specifics_t asn_SPC_compressed_lsb_y_1_specs_7
Definition: EccPoint.c:94
der_type_encoder_f CHOICE_encode_der
Definition: constr_CHOICE.h:46
static asn_TYPE_member_t asn_MBR_ecc_point_4[]
Definition: EccPoint.c:234
asn_struct_ctx_t _asn_ctx
Definition: EccPoint.h:74
asn_TYPE_descriptor_t asn_DEF_EccPointType
Definition: EccPointType.c:123
per_type_decoder_f CHOICE_decode_uper
Definition: constr_CHOICE.h:49
asn_struct_free_f SEQUENCE_free
static asn_TYPE_tag2member_t asn_MAP_ecc_point_tag2el_4[]
Definition: EccPoint.c:281
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
static ber_tlv_tag_t asn_DEF_unknown_ecc_point_tags_10[]
Definition: EccPoint.c:192
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
static asn_TYPE_descriptor_t asn_DEF_compressed_lsb_y_1_7
Definition: EccPoint.c:104
per_type_encoder_f CHOICE_encode_uper
Definition: constr_CHOICE.h:50
static asn_SEQUENCE_specifics_t asn_SPC_EccPoint_specs_1
Definition: EccPoint.c:359
static asn_TYPE_descriptor_t asn_DEF_unknown_ecc_point_10
Definition: EccPoint.c:209
asn_outmost_tag_f CHOICE_outmost_tag
Definition: constr_CHOICE.h:51
xer_type_encoder_f SEQUENCE_encode_xer
static ber_tlv_tag_t asn_DEF_compressed_lsb_y_1_tags_7[]
Definition: EccPoint.c:90
static asn_TYPE_descriptor_t asn_DEF_compressed_lsb_y_0_6
Definition: EccPoint.c:66
static asn_TYPE_member_t asn_MBR_EccPoint_1[]
Definition: EccPoint.c:322
static asn_TYPE_tag2member_t asn_MAP_unknown_ecc_point_tag2el_10[]
Definition: EccPoint.c:196
static asn_TYPE_member_t asn_MBR_uncompressed_8[]
Definition: EccPoint.c:128
static asn_TYPE_descriptor_t asn_DEF_uncompressed_8
Definition: EccPoint.c:156
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
static ber_tlv_tag_t asn_DEF_compressed_lsb_y_0_tags_6[]
Definition: EccPoint.c:52
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42