Key.c 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /*
  2. * Generated by asn1c-0.9.29 (http://lionet.info/asn1c)
  3. * From ASN.1 module "Seader"
  4. * found in "seader.asn1"
  5. * `asn1c -D ./lib/asn1 -no-gen-example -no-gen-OER -no-gen-PER -pdu=all`
  6. */
  7. #include "Key.h"
  8. asn_TYPE_member_t asn_MBR_Key_1[] = {
  9. { ATF_NOFLAGS, 0, offsetof(struct Key, referenceId),
  10. (ASN_TAG_CLASS_CONTEXT | (1 << 2)),
  11. -1, /* IMPLICIT tag at current level */
  12. &asn_DEF_OCTET_STRING,
  13. 0,
  14. { 0, 0, 0 },
  15. 0, 0, /* No default value */
  16. "referenceId"
  17. },
  18. { ATF_NOFLAGS, 0, offsetof(struct Key, crypto),
  19. (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)),
  20. 0,
  21. &asn_DEF_OCTET_STRING,
  22. 0,
  23. { 0, 0, 0 },
  24. 0, 0, /* No default value */
  25. "crypto"
  26. },
  27. };
  28. static const ber_tlv_tag_t asn_DEF_Key_tags_1[] = {
  29. (ASN_TAG_CLASS_UNIVERSAL | (16 << 2))
  30. };
  31. static const asn_TYPE_tag2member_t asn_MAP_Key_tag2el_1[] = {
  32. { (ASN_TAG_CLASS_UNIVERSAL | (4 << 2)), 1, 0, 0 }, /* crypto */
  33. { (ASN_TAG_CLASS_CONTEXT | (1 << 2)), 0, 0, 0 } /* referenceId */
  34. };
  35. asn_SEQUENCE_specifics_t asn_SPC_Key_specs_1 = {
  36. sizeof(struct Key),
  37. offsetof(struct Key, _asn_ctx),
  38. asn_MAP_Key_tag2el_1,
  39. 2, /* Count of tags in the map */
  40. 0, 0, 0, /* Optional elements (not needed) */
  41. -1, /* First extension addition */
  42. };
  43. asn_TYPE_descriptor_t asn_DEF_Key = {
  44. "Key",
  45. "Key",
  46. &asn_OP_SEQUENCE,
  47. asn_DEF_Key_tags_1,
  48. sizeof(asn_DEF_Key_tags_1)
  49. /sizeof(asn_DEF_Key_tags_1[0]), /* 1 */
  50. asn_DEF_Key_tags_1, /* Same as above */
  51. sizeof(asn_DEF_Key_tags_1)
  52. /sizeof(asn_DEF_Key_tags_1[0]), /* 1 */
  53. { 0, 0, SEQUENCE_constraint },
  54. asn_MBR_Key_1,
  55. 2, /* Elements count */
  56. &asn_SPC_Key_specs_1 /* Additional specs */
  57. };