| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- "use strict";
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.RSAPrivateKey = void 0;
- const tslib_1 = require("tslib");
- const asn1_schema_1 = require("@peculiar/asn1-schema");
- const other_prime_info_1 = require("./other_prime_info");
- class RSAPrivateKey {
- constructor(params = {}) {
- this.version = 0;
- this.modulus = new ArrayBuffer(0);
- this.publicExponent = new ArrayBuffer(0);
- this.privateExponent = new ArrayBuffer(0);
- this.prime1 = new ArrayBuffer(0);
- this.prime2 = new ArrayBuffer(0);
- this.exponent1 = new ArrayBuffer(0);
- this.exponent2 = new ArrayBuffer(0);
- this.coefficient = new ArrayBuffer(0);
- Object.assign(this, params);
- }
- }
- exports.RSAPrivateKey = RSAPrivateKey;
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer })
- ], RSAPrivateKey.prototype, "version", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "modulus", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "publicExponent", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "privateExponent", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "prime1", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "prime2", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "exponent1", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "exponent2", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: asn1_schema_1.AsnPropTypes.Integer, converter: asn1_schema_1.AsnIntegerArrayBufferConverter })
- ], RSAPrivateKey.prototype, "coefficient", void 0);
- tslib_1.__decorate([
- (0, asn1_schema_1.AsnProp)({ type: other_prime_info_1.OtherPrimeInfos, optional: true })
- ], RSAPrivateKey.prototype, "otherPrimeInfos", void 0);
|