UNPKG

@wildboar/pkcs

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