Vanetza
Loading...
Searching...
No Matches
HashAlgorithm.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_HashAlgorithm_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_HashAlgorithm_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_HashAlgorithm_value2enum_1[] = {
27 { 0, 6, "sha256" },
28 { 1, 6, "sha384" },
29 { 2, 3, "sm3" }
30 /* This list is extensible */
31};
32static const unsigned int asn_MAP_Vanetza_Security_HashAlgorithm_enum2value_1[] = {
33 0, /* sha256(0) */
34 1, /* sha384(1) */
35 2 /* sm3(2) */
36 /* This list is extensible */
37};
38const asn_INTEGER_specifics_t asn_SPC_Vanetza_Security_HashAlgorithm_specs_1 = {
39 asn_MAP_Vanetza_Security_HashAlgorithm_value2enum_1, /* "tag" => N; sorted by tag */
40 asn_MAP_Vanetza_Security_HashAlgorithm_enum2value_1, /* N => "tag"; sorted by N */
41 3, /* Number of elements in the maps */
42 2, /* Extensions before this member */
43 1, /* Strict enumeration */
44 0, /* Native long size */
45 0
46};
47static const ber_tlv_tag_t asn_DEF_Vanetza_Security_HashAlgorithm_tags_1[] = {
48 (ASN_TAG_CLASS_UNIVERSAL | (10 << 2))
49};
50asn_TYPE_descriptor_t asn_DEF_Vanetza_Security_HashAlgorithm = {
51 "HashAlgorithm",
52 "HashAlgorithm",
53 &asn_OP_NativeEnumerated,
54 asn_DEF_Vanetza_Security_HashAlgorithm_tags_1,
55 sizeof(asn_DEF_Vanetza_Security_HashAlgorithm_tags_1)
56 /sizeof(asn_DEF_Vanetza_Security_HashAlgorithm_tags_1[0]), /* 1 */
57 asn_DEF_Vanetza_Security_HashAlgorithm_tags_1, /* Same as above */
58 sizeof(asn_DEF_Vanetza_Security_HashAlgorithm_tags_1)
59 /sizeof(asn_DEF_Vanetza_Security_HashAlgorithm_tags_1[0]), /* 1 */
60 {
61#if !defined(ASN_DISABLE_OER_SUPPORT)
62 &asn_OER_type_Vanetza_Security_HashAlgorithm_constr_1,
63#endif /* !defined(ASN_DISABLE_OER_SUPPORT) */
64#if !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT)
65 &asn_PER_type_Vanetza_Security_HashAlgorithm_constr_1,
66#endif /* !defined(ASN_DISABLE_UPER_SUPPORT) || !defined(ASN_DISABLE_APER_SUPPORT) */
67#if !defined(ASN_DISABLE_JER_SUPPORT)
68 0,
69#endif /* !defined(ASN_DISABLE_JER_SUPPORT) */
70 NativeEnumerated_constraint
71 },
72 0, 0, /* Defined elsewhere */
73 &asn_SPC_Vanetza_Security_HashAlgorithm_specs_1 /* Additional specs */
74};