rsa_public_key.js 844 B

1234567891011121314151617181920212223
  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, converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  17. })
  18. ], RSAPublicKey.prototype, "modulus", void 0);
  19. tslib_1.__decorate([
  20. (0, asn1_schema_1.AsnProp)({
  21. type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter,
  22. })
  23. ], RSAPublicKey.prototype, "publicExponent", void 0);