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