@peculiar/asn1-rsa
Version:
ASN.1 schema for RSA keys and algorithms defined in RFC 8017.
39 lines (38 loc) • 1.28 kB
JavaScript
var OtherPrimeInfos_1;
import { __decorate } from "tslib";
import { AsnProp, AsnPropTypes, AsnIntegerArrayBufferConverter, AsnArray, AsnType, AsnTypeTypes, } from "@peculiar/asn1-schema";
export class OtherPrimeInfo {
prime = new ArrayBuffer(0);
exponent = new ArrayBuffer(0);
coefficient = new ArrayBuffer(0);
constructor(params = {}) {
Object.assign(this, params);
}
}
__decorate([
AsnProp({
type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter,
})
], OtherPrimeInfo.prototype, "prime", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter,
})
], OtherPrimeInfo.prototype, "exponent", void 0);
__decorate([
AsnProp({
type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter,
})
], OtherPrimeInfo.prototype, "coefficient", void 0);
let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends AsnArray {
constructor(items) {
super(items);
Object.setPrototypeOf(this, OtherPrimeInfos_1.prototype);
}
};
OtherPrimeInfos = OtherPrimeInfos_1 = __decorate([
AsnType({
type: AsnTypeTypes.Sequence, itemType: OtherPrimeInfo,
})
], OtherPrimeInfos);
export { OtherPrimeInfos };