UNPKG

@wildboar/pkcs

Version:
30 lines (29 loc) 1.01 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; export { OPEN } from "../CryptographicMessageSyntax/OPEN.oca"; /** * @summary AttributeValue * @description * * ### ASN.1 Definition: * * ```asn1 * AttributeValue ::= OPEN.&Type * ``` */ export declare type AttributeValue = _Element; /** * @summary Decodes an ASN.1 element into a(n) AttributeValue * @function * @param {_Element} el The element being decoded. * @returns {AttributeValue} The decoded data structure. */ export declare function _decode_AttributeValue(el: _Element): _Element; /** * @summary Encodes a(n) AttributeValue 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 AttributeValue, encoded as an ASN.1 Element. */ export declare function _encode_AttributeValue(value: AttributeValue, elGetter: $.ASN1Encoder<AttributeValue>): _Element;