UNPKG

@wildboar/pkcs

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