UNPKG

@wildboar/pkcs

Version:
30 lines 1.11 kB
import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { ContentInfo } from "../PKCS7/ContentInfo.ta.mjs"; /** * @summary AuthenticatedSafe * @description * * ### ASN.1 Definition: * * ```asn1 * AuthenticatedSafe ::= SEQUENCE OF ContentInfo * ``` */ export type AuthenticatedSafe = ContentInfo[]; /** * @summary Decodes an ASN.1 element into a(n) AuthenticatedSafe * @function * @param {_Element} el The element being decoded. * @returns {AuthenticatedSafe} The decoded data structure. */ export declare function _decode_AuthenticatedSafe(el: _Element): AuthenticatedSafe; /** * @summary Encodes a(n) AuthenticatedSafe 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 AuthenticatedSafe, encoded as an ASN.1 Element. */ export declare function _encode_AuthenticatedSafe(value: AuthenticatedSafe, elGetter: $.ASN1Encoder<AuthenticatedSafe>): _Element; //# sourceMappingURL=AuthenticatedSafe.ta.d.mts.map