UNPKG

@wildboar/pkcs

Version:
29 lines (28 loc) 929 B
import { ASN1Element as _Element, INTEGER } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; /** * @summary ECPrivateKey * @description * * ### ASN.1 Definition: * * ```asn1 * ECPrivateKey ::= INTEGER * ``` */ export declare type ECPrivateKey = INTEGER; /** * @summary Decodes an ASN.1 element into a(n) ECPrivateKey * @function * @param {_Element} el The element being decoded. * @returns {ECPrivateKey} The decoded data structure. */ export declare function _decode_ECPrivateKey(el: _Element): INTEGER; /** * @summary Encodes a(n) ECPrivateKey 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 ECPrivateKey, encoded as an ASN.1 Element. */ export declare function _encode_ECPrivateKey(value: ECPrivateKey, elGetter: $.ASN1Encoder<ECPrivateKey>): _Element;