@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
30 lines • 1.18 kB
text/typescript
import { ASN1Element as _Element } from "@wildboar/asn1";
import * as $ from "@wildboar/asn1/functional";
import { Attribute } from "../CryptographicMessageSyntax/Attribute.ta.mjs";
/**
* @summary UnprotectedAttributes
* @description
*
* ### ASN.1 Definition:
*
* ```asn1
* UnprotectedAttributes ::= SET SIZE (1..MAX) OF Attribute
* ```
*/
export 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 The element being encoded.
* @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;
//# sourceMappingURL=UnprotectedAttributes.ta.d.mts.map