UNPKG

@peculiar/asn1-x509

Version:

ASN.1 schema of `Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile` (RFC5280)

17 lines (16 loc) 613 B
import { __decorate } from "tslib"; import { AsnProp, AsnPropTypes } from "@peculiar/asn1-schema"; import { AlgorithmIdentifier } from "./algorithm_identifier"; export class SubjectPublicKeyInfo { constructor(params = {}) { this.algorithm = new AlgorithmIdentifier(); this.subjectPublicKey = new ArrayBuffer(0); Object.assign(this, params); } } __decorate([ AsnProp({ type: AlgorithmIdentifier }) ], SubjectPublicKeyInfo.prototype, "algorithm", void 0); __decorate([ AsnProp({ type: AsnPropTypes.BitString }) ], SubjectPublicKeyInfo.prototype, "subjectPublicKey", void 0);