rsa_public_key.js 629 B

123456789101112131415
  1. import { __decorate } from "tslib";
  2. import { AsnProp, AsnPropTypes, AsnIntegerArrayBufferConverter } from "@peculiar/asn1-schema";
  3. export class RSAPublicKey {
  4. constructor(params = {}) {
  5. this.modulus = new ArrayBuffer(0);
  6. this.publicExponent = new ArrayBuffer(0);
  7. Object.assign(this, params);
  8. }
  9. }
  10. __decorate([
  11. AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  12. ], RSAPublicKey.prototype, "modulus", void 0);
  13. __decorate([
  14. AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
  15. ], RSAPublicKey.prototype, "publicExponent", void 0);