16 lines
629 B
JavaScript
16 lines
629 B
JavaScript
import { __decorate } from "tslib";
|
|
import { AsnProp, AsnPropTypes, AsnIntegerArrayBufferConverter } from "@peculiar/asn1-schema";
|
|
export class RSAPublicKey {
|
|
constructor(params = {}) {
|
|
this.modulus = new ArrayBuffer(0);
|
|
this.publicExponent = new ArrayBuffer(0);
|
|
Object.assign(this, params);
|
|
}
|
|
}
|
|
__decorate([
|
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
], RSAPublicKey.prototype, "modulus", void 0);
|
|
__decorate([
|
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
], RSAPublicKey.prototype, "publicExponent", void 0);
|