UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 1.2 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { OneAsymmetricKey } from "../AsymmetricKeyPackageModuleV1/OneAsymmetricKey.ta"; export { OneAsymmetricKey, _decode_OneAsymmetricKey, _encode_OneAsymmetricKey, } from "../AsymmetricKeyPackageModuleV1/OneAsymmetricKey.ta"; /** * @summary PrivateKeyInfo * @description * * ### ASN.1 Definition: * * ```asn1 * PrivateKeyInfo ::= OneAsymmetricKey * ``` */ export declare type PrivateKeyInfo = OneAsymmetricKey; /** * @summary Decodes an ASN.1 element into a(n) PrivateKeyInfo * @function * @param {_Element} el The element being decoded. * @returns {PrivateKeyInfo} The decoded data structure. */ export declare function _decode_PrivateKeyInfo(el: _Element): OneAsymmetricKey; /** * @summary Encodes a(n) PrivateKeyInfo 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 PrivateKeyInfo, encoded as an ASN.1 Element. */ export declare function _encode_PrivateKeyInfo(value: PrivateKeyInfo, elGetter: $.ASN1Encoder<PrivateKeyInfo>): _Element;