ITS
Signature.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 "Signature.h"
8 
9 static asn_per_constraints_t asn_PER_type_sign_constr_3 GCC_NOTUSED = {
10  { APC_CONSTRAINED, 1, 1, 0, 1 } /* (0..1) */,
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_signature, ecdsa_signature),
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  "ecdsa-signature"
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 } /* ecdsa-signature */
31 };
33  sizeof(struct ecdsa_nistp256_with_sha256_signature),
34  offsetof(struct ecdsa_nistp256_with_sha256_signature, _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-signature",
44  "ecdsa-nistp256-with-sha256-signature",
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 unknown_signature, signature),
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  "signature"
76  },
77 };
79  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
80  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
81 };
83  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 } /* signature */
84 };
86  sizeof(struct unknown_signature),
87  offsetof(struct unknown_signature, _asn_ctx),
89  1, /* Count of tags in the map */
90  0, 0, 0, /* Optional elements (not needed) */
91  -1, /* Start extensions */
92  -1 /* Stop extensions */
93 };
94 static /* Use -fall-defs-global to expose */
96  "unknown-signature",
97  "unknown-signature",
107  0, /* Use generic outmost tag fetcher */
110  /sizeof(asn_DEF_unknown_signature_tags_6[0]) - 1, /* 1 */
111  asn_DEF_unknown_signature_tags_6, /* Same as above */
113  /sizeof(asn_DEF_unknown_signature_tags_6[0]), /* 2 */
114  0, /* No PER visible constraints */
116  1, /* Elements count */
117  &asn_SPC_unknown_signature_specs_6 /* Additional specs */
118 };
119 
121  { ATF_NOFLAGS, 0, offsetof(struct sign, choice.ecdsa_nistp256_with_sha256_signature),
122  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
123  0,
125  0, /* Defer constraints checking to the member type */
126  0, /* No PER visible constraints */
127  0,
128  "ecdsa-nistp256-with-sha256-signature"
129  },
130  { ATF_NOFLAGS, 0, offsetof(struct sign, choice.unknown_signature),
131  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
132  0,
134  0, /* Defer constraints checking to the member type */
135  0, /* No PER visible constraints */
136  0,
137  "unknown-signature"
138  },
139 };
141  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecdsa-nistp256-with-sha256-signature */
142  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* unknown-signature */
143 };
145  sizeof(struct sign),
146  offsetof(struct sign, _asn_ctx),
147  offsetof(struct sign, present),
148  sizeof(((struct sign *)0)->present),
150  2, /* Count of tags in the map */
151  0,
152  -1 /* Extensions start */
153 };
154 static /* Use -fall-defs-global to expose */
156  "sign",
157  "sign",
158  CHOICE_free,
159  CHOICE_print,
168  0, /* No effective tags (pointer) */
169  0, /* No effective tags (count) */
170  0, /* No tags (pointer) */
171  0, /* No tags (count) */
172  &asn_PER_type_sign_constr_3,
174  2, /* Elements count */
175  &asn_SPC_sign_specs_3 /* Additional specs */
176 };
177 
179  { ATF_NOFLAGS, 0, offsetof(struct Signature, algorithm),
180  (ASN_TAG_CLASS_CONTEXT | (0 << 2)),
181  -1, /* IMPLICIT tag at current level */
183  0, /* Defer constraints checking to the member type */
184  0, /* No PER visible constraints */
185  0,
186  "algorithm"
187  },
188  { ATF_NOFLAGS, 0, offsetof(struct Signature, sign),
189  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
190  +1, /* EXPLICIT tag at current level */
192  0, /* Defer constraints checking to the member type */
193  0, /* No PER visible constraints */
194  0,
195  "sign"
196  },
197 };
199  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
200 };
202  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* algorithm */
203  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* sign */
204 };
206  sizeof(struct Signature),
207  offsetof(struct Signature, _asn_ctx),
209  2, /* Count of tags in the map */
210  0, 0, 0, /* Optional elements (not needed) */
211  -1, /* Start extensions */
212  -1 /* Stop extensions */
213 };
215  "Signature",
216  "Signature",
226  0, /* Use generic outmost tag fetcher */
229  /sizeof(asn_DEF_Signature_tags_1[0]), /* 1 */
230  asn_DEF_Signature_tags_1, /* Same as above */
232  /sizeof(asn_DEF_Signature_tags_1[0]), /* 1 */
233  0, /* No PER visible constraints */
235  2, /* Elements count */
236  &asn_SPC_Signature_specs_1 /* Additional specs */
237 };
238 
static asn_TYPE_member_t asn_MBR_unknown_signature_6[]
Definition: Signature.c:67
#define offsetof(s, m)
Definition: asn_system.h:115
static asn_SEQUENCE_specifics_t asn_SPC_ecdsa_nistp256_with_sha256_signature_specs_4
Definition: Signature.c:32
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
ber_type_decoder_f SEQUENCE_decode_ber
static asn_TYPE_member_t asn_MBR_Signature_1[]
Definition: Signature.c:178
static ber_tlv_tag_t asn_DEF_ecdsa_nistp256_with_sha256_signature_tags_4[]
Definition: Signature.c:25
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 asn_TYPE_member_t asn_MBR_sign_3[]
Definition: Signature.c:120
ber_type_decoder_f CHOICE_decode_ber
Definition: constr_CHOICE.h:45
static asn_TYPE_member_t asn_MBR_ecdsa_nistp256_with_sha256_signature_4[]
Definition: Signature.c:14
asn_struct_print_f SEQUENCE_print
static asn_TYPE_descriptor_t asn_DEF_unknown_signature_6
Definition: Signature.c:95
per_type_decoder_f SEQUENCE_decode_uper
static asn_TYPE_descriptor_t asn_DEF_sign_3
Definition: Signature.c:155
per_type_encoder_f SEQUENCE_encode_uper
static asn_TYPE_tag2member_t asn_MAP_unknown_signature_tag2el_6[]
Definition: Signature.c:82
asn_constr_check_f SEQUENCE_constraint
asn_TYPE_descriptor_t asn_DEF_Opaque
Definition: Opaque.c:45
xer_type_decoder_f SEQUENCE_decode_xer
der_type_encoder_f CHOICE_encode_der
Definition: constr_CHOICE.h:46
per_type_decoder_f CHOICE_decode_uper
Definition: constr_CHOICE.h:49
asn_TYPE_descriptor_t asn_DEF_EcdsaSignature
asn_struct_free_f SEQUENCE_free
static ber_tlv_tag_t asn_DEF_unknown_signature_tags_6[]
Definition: Signature.c:78
static ber_tlv_tag_t asn_DEF_Signature_tags_1[]
Definition: Signature.c:198
static asn_SEQUENCE_specifics_t asn_SPC_Signature_specs_1
Definition: Signature.c:205
static asn_SEQUENCE_specifics_t asn_SPC_unknown_signature_specs_6
Definition: Signature.c:85
asn_struct_ctx_t _asn_ctx
Definition: Signature.h:56
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
static asn_per_constraints_t asn_PER_type_sign_constr_3 GCC_NOTUSED
Definition: Signature.c:9
static asn_TYPE_tag2member_t asn_MAP_sign_tag2el_3[]
Definition: Signature.c:140
static asn_CHOICE_specifics_t asn_SPC_sign_specs_3
Definition: Signature.c:144
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
asn_TYPE_descriptor_t asn_DEF_Signature
Definition: Signature.c:214
per_type_encoder_f CHOICE_encode_uper
Definition: constr_CHOICE.h:50
asn_outmost_tag_f CHOICE_outmost_tag
Definition: constr_CHOICE.h:51
xer_type_encoder_f SEQUENCE_encode_xer
static asn_TYPE_tag2member_t asn_MAP_ecdsa_nistp256_with_sha256_signature_tag2el_4[]
Definition: Signature.c:29
static asn_TYPE_descriptor_t asn_DEF_ecdsa_nistp256_with_sha256_signature_4
Definition: Signature.c:42
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
static asn_TYPE_tag2member_t asn_MAP_Signature_tag2el_1[]
Definition: Signature.c:201
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42