UNPKG

@wildboar/pkcs

Version:
30 lines 1.14 kB
import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { AlgorithmIdentifier } from "../PKCS-1/AlgorithmIdentifier.ta.mjs"; /** * @summary PSourceAlgorithm * @description * * ### ASN.1 Definition: * * ```asn1 * PSourceAlgorithm ::= AlgorithmIdentifier { {PKCS1PSourceAlgorithms} } * ``` */ export type PSourceAlgorithm = AlgorithmIdentifier; /** * @summary Decodes an ASN.1 element into a(n) PSourceAlgorithm * @function * @param {_Element} el The element being decoded. * @returns {PSourceAlgorithm} The decoded data structure. */ export declare function _decode_PSourceAlgorithm(el: _Element): PSourceAlgorithm; /** * @summary Encodes a(n) PSourceAlgorithm into an ASN.1 Element. * @function * @param value The element being encoded. * @param elGetter A function that can be used to get new ASN.1 elements. * @returns {_Element} The PSourceAlgorithm, encoded as an ASN.1 Element. */ export declare function _encode_PSourceAlgorithm(value: PSourceAlgorithm, elGetter: $.ASN1Encoder<PSourceAlgorithm>): _Element; //# sourceMappingURL=PSourceAlgorithm.ta.d.mts.map