other_prime_info.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  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. constructor(params = {}) {
  9. this.prime = new ArrayBuffer(0);
  10. this.exponent = new ArrayBuffer(0);
  11. this.coefficient = new ArrayBuffer(0);
  12. Object.assign(this, params);
  13. }
  14. }
  15. exports.OtherPrimeInfo = OtherPrimeInfo;
  16. tslib_1.__decorate([
  17. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
  18. ], OtherPrimeInfo.prototype, "prime", void 0);
  19. tslib_1.__decorate([
  20. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
  21. ], OtherPrimeInfo.prototype, "exponent", void 0);
  22. tslib_1.__decorate([
  23. (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
  24. ], OtherPrimeInfo.prototype, "coefficient", void 0);
  25. let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends asn1_schema_1.AsnArray {
  26. constructor(items) {
  27. super(items);
  28. Object.setPrototypeOf(this, OtherPrimeInfos_1.prototype);
  29. }
  30. };
  31. exports.OtherPrimeInfos = OtherPrimeInfos;
  32. exports.OtherPrimeInfos = OtherPrimeInfos = OtherPrimeInfos_1 = tslib_1.__decorate([
  33. (0, asn1_schema_1.AsnType)({ type: asn1_schema_1.AsnTypeTypes.Sequence, itemType: OtherPrimeInfo })
  34. ], OtherPrimeInfos);