other_prime_info.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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, converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  19. })
  20. ], OtherPrimeInfo.prototype, "prime", void 0);
  21. tslib_1.__decorate([
  22. (0, asn1_schema_1.AsnProp)({
  23. type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  24. })
  25. ], OtherPrimeInfo.prototype, "exponent", void 0);
  26. tslib_1.__decorate([
  27. (0, asn1_schema_1.AsnProp)({
  28. type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  29. })
  30. ], OtherPrimeInfo.prototype, "coefficient", void 0);
  31. let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends asn1_schema_1.AsnArray {
  32. constructor(items) {
  33. super(items);
  34. Object.setPrototypeOf(this, OtherPrimeInfos_1.prototype);
  35. }
  36. };
  37. exports.OtherPrimeInfos = OtherPrimeInfos;
  38. exports.OtherPrimeInfos = OtherPrimeInfos = OtherPrimeInfos_1 = tslib_1.__decorate([
  39. (0, asn1_schema_1.AsnType)({
  40. type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: OtherPrimeInfo,
  41. })
  42. ], OtherPrimeInfos);