other_prime_info.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. "use strict";
  2. var OtherPrimeInfos_1;
  3. Object.defineProperty(exports, "__esModule", { value: true });
  4. exports.OtherPrimeInfos = exports.OtherPrimeInfo = void 0;
  5. const tslib_1 = require("tslib");
  6. const asn1_schema_1 = require("@peculiar/asn1-schema");
  7. class OtherPrimeInfo {
  8. prime = new ArrayBuffer(0);
  9. exponent = new ArrayBuffer(0);
  10. coefficient = new ArrayBuffer(0);
  11. constructor(params = {}) {
  12. Object.assign(this, params);
  13. }
  14. }
  15. exports.OtherPrimeInfo = OtherPrimeInfo;
  16. tslib_1.__decorate([
  17. (0, asn1_schema_1.AsnProp)({
  18. type: asn1_schema_1.AsnPropTypes.Integer,
  19. converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  20. })
  21. ], OtherPrimeInfo.prototype, "prime", void 0);
  22. tslib_1.__decorate([
  23. (0, asn1_schema_1.AsnProp)({
  24. type: asn1_schema_1.AsnPropTypes.Integer,
  25. converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  26. })
  27. ], OtherPrimeInfo.prototype, "exponent", void 0);
  28. tslib_1.__decorate([
  29. (0, asn1_schema_1.AsnProp)({
  30. type: asn1_schema_1.AsnPropTypes.Integer,
  31. converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  32. })
  33. ], OtherPrimeInfo.prototype, "coefficient", void 0);
  34. let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends asn1_schema_1.AsnArray {
  35. constructor(items) {
  36. super(items);
  37. Object.setPrototypeOf(this, OtherPrimeInfos_1.prototype);
  38. }
  39. };
  40. exports.OtherPrimeInfos = OtherPrimeInfos;
  41. exports.OtherPrimeInfos = OtherPrimeInfos = OtherPrimeInfos_1 = tslib_1.__decorate([
  42. (0, asn1_schema_1.AsnType)({
  43. type: asn1_schema_1.AsnTypeTypes.Sequence,
  44. itemType: OtherPrimeInfo,
  45. })
  46. ], OtherPrimeInfos);