@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
29 lines (28 loc) • 887 B
TypeScript
import { ASN1Element as _Element, UTF8String } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
/**
* @summary Label
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* Label ::= UTF8String (SIZE(0..pkcs15-ub-label))
* ```
*/
export declare type Label = UTF8String;
/**
* @summary Decodes an ASN.1 element into a(n) Label
* @function
* @param {_Element} el The element being decoded.
* @returns {Label} The decoded data structure.
*/
export declare function _decode_Label(el: _Element): string;
/**
* @summary Encodes a(n) Label 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 Label, encoded as an ASN.1 Element.
*/
export declare function _encode_Label(value: Label, elGetter: $.ASN1Encoder<Label>): _Element;