UNPKG

@wildboar/pkcs

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