ITS
RecipientInfo.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 "RecipientInfo.h"
8 
9 static asn_per_constraints_t asn_PER_type_recipient_info_constr_4 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 ecies_nistp256_recipient_info, enc_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  "enc-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 } /* enc-key */
31 };
33  sizeof(struct ecies_nistp256_recipient_info),
34  offsetof(struct ecies_nistp256_recipient_info, _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  "ecies-nistp256-recipient-info",
44  "ecies-nistp256-recipient-info",
54  0, /* Use generic outmost tag fetcher */
57  /sizeof(asn_DEF_ecies_nistp256_recipient_info_tags_5[0]) - 1, /* 1 */
61  0, /* No PER visible constraints */
63  1, /* Elements count */
64  &asn_SPC_ecies_nistp256_recipient_info_specs_5 /* Additional specs */
65 };
66 
68  { ATF_NOFLAGS, 0, offsetof(struct unknown_recipient_info, enc_key),
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  "enc-key"
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 } /* enc-key */
84 };
86  sizeof(struct unknown_recipient_info),
87  offsetof(struct unknown_recipient_info, _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-recipient-info",
97  "unknown-recipient-info",
107  0, /* Use generic outmost tag fetcher */
110  /sizeof(asn_DEF_unknown_recipient_info_tags_7[0]) - 1, /* 1 */
111  asn_DEF_unknown_recipient_info_tags_7, /* Same as above */
113  /sizeof(asn_DEF_unknown_recipient_info_tags_7[0]), /* 2 */
114  0, /* No PER visible constraints */
116  1, /* Elements count */
117  &asn_SPC_unknown_recipient_info_specs_7 /* Additional specs */
118 };
119 
121  { ATF_NOFLAGS, 0, offsetof(struct recipient_info, choice.ecies_nistp256_recipient_info),
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  "ecies-nistp256-recipient-info"
129  },
130  { ATF_NOFLAGS, 0, offsetof(struct recipient_info, choice.unknown_recipient_info),
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-recipient-info"
138  },
139 };
141  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* ecies-nistp256-recipient-info */
142  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 } /* unknown-recipient-info */
143 };
145  sizeof(struct recipient_info),
146  offsetof(struct recipient_info, _asn_ctx),
147  offsetof(struct recipient_info, present),
148  sizeof(((struct recipient_info *)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  "recipient-info",
157  "recipient-info",
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_recipient_info_constr_4,
174  2, /* Elements count */
175  &asn_SPC_recipient_info_specs_4 /* Additional specs */
176 };
177 
179  { ATF_NOFLAGS, 0, offsetof(struct RecipientInfo, cert_id),
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  "cert-id"
187  },
188  { ATF_NOFLAGS, 0, offsetof(struct RecipientInfo, pk_encryption),
189  (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
190  -1, /* IMPLICIT tag at current level */
192  0, /* Defer constraints checking to the member type */
193  0, /* No PER visible constraints */
194  0,
195  "pk-encryption"
196  },
197  { ATF_NOFLAGS, 0, offsetof(struct RecipientInfo, recipient_info),
198  (ASN_TAG_CLASS_CONTEXT | (2 << 2)),
199  +1, /* EXPLICIT tag at current level */
201  0, /* Defer constraints checking to the member type */
202  0, /* No PER visible constraints */
203  0,
204  "recipient-info"
205  },
206 };
208  (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
209 };
211  { (ASN_TAG_CLASS_CONTEXT | (0 << 2)), 0, 0, 0 }, /* cert-id */
212  { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 1, 0, 0 }, /* pk-encryption */
213  { (ASN_TAG_CLASS_CONTEXT | (2 << 2)), 2, 0, 0 } /* recipient-info */
214 };
216  sizeof(struct RecipientInfo),
219  3, /* Count of tags in the map */
220  0, 0, 0, /* Optional elements (not needed) */
221  -1, /* Start extensions */
222  -1 /* Stop extensions */
223 };
225  "RecipientInfo",
226  "RecipientInfo",
236  0, /* Use generic outmost tag fetcher */
239  /sizeof(asn_DEF_RecipientInfo_tags_1[0]), /* 1 */
240  asn_DEF_RecipientInfo_tags_1, /* Same as above */
242  /sizeof(asn_DEF_RecipientInfo_tags_1[0]), /* 1 */
243  0, /* No PER visible constraints */
245  3, /* Elements count */
246  &asn_SPC_RecipientInfo_specs_1 /* Additional specs */
247 };
248 
static asn_SEQUENCE_specifics_t asn_SPC_ecies_nistp256_recipient_info_specs_5
Definition: RecipientInfo.c:32
#define offsetof(s, m)
Definition: asn_system.h:115
asn_struct_print_f CHOICE_print
Definition: constr_CHOICE.h:43
static asn_TYPE_member_t asn_MBR_ecies_nistp256_recipient_info_5[]
Definition: RecipientInfo.c:14
ber_type_decoder_f SEQUENCE_decode_ber
static asn_TYPE_descriptor_t asn_DEF_ecies_nistp256_recipient_info_5
Definition: RecipientInfo.c:42
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
asn_TYPE_descriptor_t asn_DEF_RecipientInfo
asn_TYPE_descriptor_t asn_DEF_EciesEncryptedKey
static ber_tlv_tag_t asn_DEF_RecipientInfo_tags_1[]
asn_TYPE_descriptor_t asn_DEF_HashedId8
Definition: HashedId8.c:124
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
static asn_CHOICE_specifics_t asn_SPC_recipient_info_specs_4
per_type_encoder_f SEQUENCE_encode_uper
static asn_TYPE_descriptor_t asn_DEF_recipient_info_4
static ber_tlv_tag_t asn_DEF_unknown_recipient_info_tags_7[]
Definition: RecipientInfo.c:78
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_TYPE_member_t asn_MBR_recipient_info_4[]
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_RecipientInfo_tag2el_1[]
static asn_TYPE_tag2member_t asn_MAP_ecies_nistp256_recipient_info_tag2el_5[]
Definition: RecipientInfo.c:29
asn_struct_ctx_t _asn_ctx
Definition: RecipientInfo.h:58
static asn_per_constraints_t asn_PER_type_recipient_info_constr_4 GCC_NOTUSED
Definition: RecipientInfo.c:9
xer_type_encoder_f CHOICE_encode_xer
Definition: constr_CHOICE.h:48
static asn_TYPE_member_t asn_MBR_unknown_recipient_info_7[]
Definition: RecipientInfo.c:67
static asn_TYPE_member_t asn_MBR_RecipientInfo_1[]
static asn_TYPE_tag2member_t asn_MAP_recipient_info_tag2el_4[]
xer_type_decoder_f CHOICE_decode_xer
Definition: constr_CHOICE.h:47
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_unknown_recipient_info_tag2el_7[]
Definition: RecipientInfo.c:82
static asn_SEQUENCE_specifics_t asn_SPC_RecipientInfo_specs_1
static asn_SEQUENCE_specifics_t asn_SPC_unknown_recipient_info_specs_7
Definition: RecipientInfo.c:85
static ber_tlv_tag_t asn_DEF_ecies_nistp256_recipient_info_tags_5[]
Definition: RecipientInfo.c:25
static asn_TYPE_descriptor_t asn_DEF_unknown_recipient_info_7
Definition: RecipientInfo.c:95
unsigned ber_tlv_tag_t
Definition: ber_tlv_tag.h:18
asn_struct_free_f CHOICE_free
Definition: constr_CHOICE.h:42