17 lines
559 B
Plaintext
17 lines
559 B
Plaintext
import { __decorate } from "tslib";
|
|
import { AlgorithmIdentifier } from "@peculiar/asn1-x509";
|
|
import { AsnProp, OctetString } from "@peculiar/asn1-schema";
|
|
export class DigestInfo {
|
|
constructor(params = {}) {
|
|
this.digestAlgorithm = new AlgorithmIdentifier();
|
|
this.digest = new OctetString();
|
|
Object.assign(this, params);
|
|
}
|
|
}
|
|
__decorate([
|
|
AsnProp({ type: AlgorithmIdentifier })
|
|
], DigestInfo.prototype, "digestAlgorithm", void 0);
|
|
__decorate([
|
|
AsnProp({ type: OctetString })
|
|
], DigestInfo.prototype, "digest", void 0);
|