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