Vanetza
Loading...
Searching...
No Matches
SymmAlgorithm.c
1/*
2 * Generated by asn1c
3 * From ASN.1 module "Ieee1609Dot2BaseTypes"
4 * found in "Ieee1609Dot2BaseTypes.asn"
5 * `asn1c -fcompound-names -fincludes-quoted -no-gen-example -fprefix=Vanetza_Security_ -R`
6 */
7
9
10/*
11 * This type is implemented using NativeEnumerated,
12 * so here we adjust the DEF accordingly.
13 */
14#if !defined(ASN_DISABLE_OER_SUPPORT)
15asn_oer_constraints_t asn_OER_type_Vanetza_Security_SymmAlgorithm_constr_1 CC_NOTUSED = {
16 { 0, 0 },
17 -1};
18#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
19#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
20asn_per_constraints_t asn_PER_type_Vanetza_Security_SymmAlgorithm_constr_1 CC_NOTUSED = {
21 { APC_CONSTRAINED | APC_EXTENSIBLE, 0, 0, 0, 0 } /* (0..0,...) */,
22 { APC_UNCONSTRAINED, -1, -1, 0, 0 },
23 0, 0 /* No PER value map */
24};
25#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
26static const asn_INTEGER_enum_map_t asn_MAP_Vanetza_Security_SymmAlgorithm_value2enum_1[] = {
27 { 0, 9, "aes128Ccm" },
28 { 1, 6, "sm4Ccm" }
29 /* This list is extensible */
30};
31static const unsigned int asn_MAP_Vanetza_Security_SymmAlgorithm_enum2value_1[] = {
32 0, /* aes128Ccm(0) */
33 1 /* sm4Ccm(1) */
34 /* This list is extensible */
35};
36const asn_INTEGER_specifics_t asn_SPC_Vanetza_Security_SymmAlgorithm_specs_1 = {
37 asn_MAP_Vanetza_Security_SymmAlgorithm_value2enum_1, /* "tag" => N; sorted by tag */
38 asn_MAP_Vanetza_Security_SymmAlgorithm_enum2value_1, /* N => "tag"; sorted by N */
39 2, /* Number of elements in the maps */
40 2, /* Extensions before this member */
41 1, /* Strict enumeration */
42 0, /* Native long size */
43 0
44};
45static const ber_tlv_tag_t asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1[] = {
46 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
47};
48asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_SymmAlgorithm = {
49 "SymmAlgorithm",
50 "SymmAlgorithm",
51 &asn_OP_NativeEnumerated,
52 asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1,
53 sizeof(asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1)
54 /sizeof(asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1[0]), /* 1 */
55 asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1, /* Same as above */
56 sizeof(asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1)
57 /sizeof(asn_DEF_Vanetza_Security_SymmAlgorithm_tags_1[0]), /* 1 */
58 {
59#if !defined(ASN_DISABLE_OER_SUPPORT)
60 &asn_OER_type_Vanetza_Security_SymmAlgorithm_constr_1,
61#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
62#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
63 &asn_PER_type_Vanetza_Security_SymmAlgorithm_constr_1,
64#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
65#if !defined(ASN_DISABLE_JER_SUPPORT)
66 0,
67#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
68 NativeEnumerated_constraint
69 },
70 0, 0, /* Defined elsewhere */
71 &asn_SPC_Vanetza_Security_SymmAlgorithm_specs_1 /* Additional specs */
72};