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