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