rsa_public_key.js 860 B

12345678910111213141516171819202122232425
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.RSAPublicKey = void 0;
  4. const tslib_1 = require("tslib");
  5. const asn1_schema_1 = require("@peculiar/asn1-schema");
  6. class RSAPublicKey {
  7. modulus = new ArrayBuffer(0);
  8. publicExponent = new ArrayBuffer(0);
  9. constructor(params = {}) {
  10. Object.assign(this, params);
  11. }
  12. }
  13. exports.RSAPublicKey = RSAPublicKey;
  14. tslib_1.__decorate([
  15. (0, asn1_schema_1.AsnProp)({
  16. type: asn1_schema_1.AsnPropTypes.Integer,
  17. converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  18. })
  19. ], RSAPublicKey.prototype, "modulus", void 0);
  20. tslib_1.__decorate([
  21. (0, asn1_schema_1.AsnProp)({
  22. type: asn1_schema_1.AsnPropTypes.Integer,
  23. converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  24. })
  25. ], RSAPublicKey.prototype, "publicExponent", void 0);