@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 KEAPrivateKey
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* KEAPrivateKey ::= INTEGER
* ```
*/
export declare type KEAPrivateKey = INTEGER;
/**
* @summary Decodes an ASN.1 element into a(n) KEAPrivateKey
* @function
* @param {_Element} el The element being decoded.
* @returns {KEAPrivateKey} The decoded data structure.
*/
export declare function _decode_KEAPrivateKey(el: _Element): INTEGER;
/**
* @summary Encodes a(n) KEAPrivateKey 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 KEAPrivateKey, encoded as an ASN.1 Element.
*/
export declare function _encode_KEAPrivateKey(value: KEAPrivateKey, elGetter: $.ASN1Encoder<KEAPrivateKey>): _Element;