UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 1.23 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { AlgorithmIdentifier } from "../PKCS-1/AlgorithmIdentifier.ta"; export { AlgorithmIdentifier, _decode_AlgorithmIdentifier, _encode_AlgorithmIdentifier, } from "../PKCS-1/AlgorithmIdentifier.ta"; /** * @summary PSourceAlgorithm * @description * * ### ASN.1 Definition: * * ```asn1 * PSourceAlgorithm ::= AlgorithmIdentifier { {PKCS1PSourceAlgorithms} } * ``` */ export declare 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): AlgorithmIdentifier; /** * @summary Encodes a(n) PSourceAlgorithm 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 PSourceAlgorithm, encoded as an ASN.1 Element. */ export declare function _encode_PSourceAlgorithm(value: PSourceAlgorithm, elGetter: $.ASN1Encoder<PSourceAlgorithm>): _Element;