other_prime_info.js 1.2 KB

123456789101112131415161718192021222324252627282930
  1. var OtherPrimeInfos_1;
  2. import { __decorate } from "tslib";
  3. import { AsnProp, AsnPropTypes, AsnIntegerArrayBufferConverter, AsnArray, AsnType, AsnTypeTypes, } from "@peculiar/asn1-schema";
  4. export class OtherPrimeInfo {
  5. constructor(params = {}) {
  6. this.prime = new ArrayBuffer(0);
  7. this.exponent = new ArrayBuffer(0);
  8. this.coefficient = new ArrayBuffer(0);
  9. Object.assign(this, params);
  10. }
  11. }
  12. __decorate([
  13. AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  14. ], OtherPrimeInfo.prototype, "prime", void 0);
  15. __decorate([
  16. AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  17. ], OtherPrimeInfo.prototype, "exponent", void 0);
  18. __decorate([
  19. AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  20. ], OtherPrimeInfo.prototype, "coefficient", void 0);
  21. let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends AsnArray {
  22. constructor(items) {
  23. super(items);
  24. Object.setPrototypeOf(this, OtherPrimeInfos_1.prototype);
  25. }
  26. };
  27. OtherPrimeInfos = OtherPrimeInfos_1 = __decorate([
  28. AsnType({ type: AsnTypeTypes.Sequence, itemType: OtherPrimeInfo })
  29. ], OtherPrimeInfos);
  30. export { OtherPrimeInfos };