ITS
EncryptionParameters.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 "EncryptionParameters.h"
8 
9 static asn_per_constraints_t asn_PER_type_encryption_parameters_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 aes_128_ccm, nonce),
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  "nonce"
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 } /* nonce */
31 };
33  sizeof(struct aes_128_ccm),
34  offsetof(struct aes_128_ccm, _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  "aes-128-ccm",
44  "aes-128-ccm",
54  0, /* Use generic outmost tag fetcher */
57  /sizeof(asn_DEF_aes_128_ccm_tags_4[0]) - 1, /* 1 */
58  asn_DEF_aes_128_ccm_tags_4, /* Same as above */
60  /sizeof(asn_DEF_aes_128_ccm_tags_4[0]), /* 2 */
61  0, /* No PER visible constraints */
63  1, /* Elements count */
64  &asn_SPC_aes_128_ccm_specs_4 /* Additional specs */
65 };
66 
68  { ATF_NOFLAGS, 0, offsetof(struct unknown_encryption_parameters, params),
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  "params"
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 } /* params */
84 };
86  sizeof(struct unknown_encryption_parameters),
87  offsetof(struct unknown_encryption_parameters, _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-encryption-parameters",
97  "unknown-encryption-parameters",
107  0, /* Use generic outmost tag fetcher */
110  /sizeof(asn_DEF_unknown_encryption_parameters_tags_6[0]) - 1, /* 1 */
114  0, /* No PER visible constraints */
116  1, /* Elements count */
117  &asn_SPC_unknown_encryption_parameters_specs_6 /* Additional specs */
118 };
119 
121  { ATF_NOFLAGS, 0, offsetof(struct encryption_parameters, choice.aes_128_ccm),
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  "aes-128-ccm"
129  },
130  { ATF_NOFLAGS, 0, offsetof(struct encryption_parameters, choice.unknown_encryption_parameters),
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-encryption-parameters"
138  },
139 };
141  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* aes-128-ccm */
142  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* unknown-encryption-parameters */
143 };
145  sizeof(struct encryption_parameters),
146  offsetof(struct encryption_parameters, _asn_ctx),
147  offsetof(struct encryption_parameters, present),
148  sizeof(((struct encryption_parameters *)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  "encryption-parameters",
157  "encryption-parameters",
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_encryption_parameters_constr_3,
174  2, /* Elements count */
175  &asn_SPC_encryption_parameters_specs_3 /* Additional specs */
176 };
177 
179  { ATF_NOFLAGS, 0, offsetof(struct EncryptionParameters, symm_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  "symm-algorithm"
187  },
188  { ATF_NOFLAGS, 0, offsetof(struct EncryptionParameters, encryption_parameters),
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  "encryption-parameters"
196  },
197 };
199  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
200 };
202  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* symm-algorithm */
203  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* encryption-parameters */
204 };
206  sizeof(struct EncryptionParameters),
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  "EncryptionParameters",
216  "EncryptionParameters",
226  0, /* Use generic outmost tag fetcher */
229  /sizeof(asn_DEF_EncryptionParameters_tags_1[0]), /* 1 */
230  asn_DEF_EncryptionParameters_tags_1, /* Same as above */
232  /sizeof(asn_DEF_EncryptionParameters_tags_1[0]), /* 1 */
233  0, /* No PER visible constraints */
235  2, /* Elements count */
236  &asn_SPC_EncryptionParameters_specs_1 /* Additional specs */
237 };
238 
static ber_tlv_tag_t asn_DEF_unknown_encryption_parameters_tags_6[]
#define offsetof(s, m)
Definition: asn_system.h:115
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
ber_type_decoder_f SEQUENCE_decode_ber
asn_TYPE_descriptor_t asn_DEF_EncryptionParameters
static asn_TYPE_member_t asn_MBR_encryption_parameters_3[]
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_EncryptionParameters_tags_1[]
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
static asn_TYPE_descriptor_t asn_DEF_aes_128_ccm_4
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
static asn_SEQUENCE_specifics_t asn_SPC_unknown_encryption_parameters_specs_6
static asn_SEQUENCE_specifics_t asn_SPC_aes_128_ccm_specs_4
static asn_TYPE_tag2member_t asn_MAP_unknown_encryption_parameters_tag2el_6[]
static asn_SEQUENCE_specifics_t asn_SPC_EncryptionParameters_specs_1
per_type_decoder_f CHOICE_decode_uper
Definition: constr_CHOICE.h:49
static asn_TYPE_member_t asn_MBR_unknown_encryption_parameters_6[]
asn_struct_free_f SEQUENCE_free
static asn_TYPE_tag2member_t asn_MAP_EncryptionParameters_tag2el_1[]
static asn_CHOICE_specifics_t asn_SPC_encryption_parameters_specs_3
static asn_TYPE_member_t asn_MBR_aes_128_ccm_4[]
asn_TYPE_descriptor_t asn_DEF_SymmetricAlgorithm
static asn_per_constraints_t asn_PER_type_encryption_parameters_constr_3 GCC_NOTUSED
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
asn_struct_ctx_t _asn_ctx
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
per_type_encoder_f CHOICE_encode_uper
Definition: constr_CHOICE.h:50
static asn_TYPE_descriptor_t asn_DEF_unknown_encryption_parameters_6
static ber_tlv_tag_t asn_DEF_aes_128_ccm_tags_4[]
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_aes_128_ccm_tag2el_4[]
static asn_TYPE_member_t asn_MBR_EncryptionParameters_1[]
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
static asn_TYPE_tag2member_t asn_MAP_encryption_parameters_tag2el_3[]
static asn_TYPE_descriptor_t asn_DEF_encryption_parameters_3
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42