UNPKG

@wildboar/pki-stub

Version:
29 lines (28 loc) 992 B
import { BIT_STRING, ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary UniqueIdentifier * @description * * ### ASN.1 Definition: * * ```asn1 * UniqueIdentifier ::= BIT STRING * ``` */ export declare type UniqueIdentifier = BIT_STRING; /** * @summary Decodes an ASN.1 element into a(n) UniqueIdentifier * @function * @param {_Element} el The element being decoded. * @returns {UniqueIdentifier} The decoded data structure. */ export declare function _decode_UniqueIdentifier(el: _Element): Uint8ClampedArray; /** * @summary Encodes a(n) UniqueIdentifier 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 UniqueIdentifier, encoded as an ASN.1 Element. */ export declare function _encode_UniqueIdentifier(value: UniqueIdentifier, elGetter: $.ASN1Encoder<UniqueIdentifier>): _Element;