@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
32 lines • 1.09 kB
text/typescript
import * as $ from "@wildboar/asn1/functional";
import { RDNSequence } from "../PKI-Stub/RDNSequence.ta.mjs";
/**
* @summary DistinguishedName
* @description
*
* A sequence of relative distinguished names in an order that descends from the
* root of the DIT.
*
* ### ASN.1 Definition:
*
* ```asn1
* DistinguishedName ::= RDNSequence
* ```
*/
export type DistinguishedName = RDNSequence;
/**
* @summary Decodes an ASN.1 element into a(n) DistinguishedName
* @function
* @param {_Element} el The element being decoded.
* @returns {DistinguishedName} The decoded data structure.
*/
export declare const _decode_DistinguishedName: $.ASN1Decoder<DistinguishedName>;
/**
* @summary Encodes a(n) DistinguishedName into an ASN.1 Element.
* @function
* @param value The element being encoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The DistinguishedName, encoded as an ASN.1 Element.
*/
export declare const _encode_DistinguishedName: $.ASN1Encoder<DistinguishedName>;
//# sourceMappingURL=DistinguishedName.ta.d.mts.map