UNPKG

@wildboar/pkcs

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