@wildboar/pki-stub
Version:
X.510 PKI-Stub ASN.1 data structures in TypeScript
30 lines (29 loc) • 1.21 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { AttributeTypeAndValue } from "../PKI-Stub/AttributeTypeAndValue.ta";
/**
* @summary RelativeDistinguishedName
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* RelativeDistinguishedName ::= SET SIZE (1..MAX) OF AttributeTypeAndValue
* ```
*/
export declare type RelativeDistinguishedName = AttributeTypeAndValue[];
/**
* @summary Decodes an ASN.1 element into a(n) RelativeDistinguishedName
* @function
* @param {_Element} el The element being decoded.
* @returns {RelativeDistinguishedName} The decoded data structure.
*/
export declare function _decode_RelativeDistinguishedName(el: _Element): RelativeDistinguishedName;
/**
* @summary Encodes a(n) RelativeDistinguishedName into an ASN.1 Element.
* @function
* @param {value} el The element being decoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The RelativeDistinguishedName, encoded as an ASN.1 Element.
*/
export declare function _encode_RelativeDistinguishedName(value: RelativeDistinguishedName, elGetter: $.ASN1Encoder<RelativeDistinguishedName>): _Element;