UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 1.12 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { SignerInfo } from "../CryptographicMessageSyntax/SignerInfo.ta"; export { SignerInfo, _decode_SignerInfo, _encode_SignerInfo, } from "../CryptographicMessageSyntax/SignerInfo.ta"; /** * @summary SignerInfos * @description * * ### ASN.1 Definition: * * ```asn1 * SignerInfos ::= SET OF SignerInfo * ``` */ export declare type SignerInfos = SignerInfo[]; /** * @summary Decodes an ASN.1 element into a(n) SignerInfos * @function * @param {_Element} el The element being decoded. * @returns {SignerInfos} The decoded data structure. */ export declare function _decode_SignerInfos(el: _Element): SignerInfos; /** * @summary Encodes a(n) SignerInfos 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 SignerInfos, encoded as an ASN.1 Element. */ export declare function _encode_SignerInfos(value: SignerInfos, elGetter: $.ASN1Encoder<SignerInfos>): _Element;