UNPKG

@wildboar/pki-stub

Version:
31 lines (30 loc) 1.2 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { SIGNED } from "../PKI-Stub/SIGNED.ta"; import { TBSAttributeCertificate } from "../PKI-Stub/TBSAttributeCertificate.ta"; /** * @summary AttributeCertificate * @description * * ### ASN.1 Definition: * * ```asn1 * AttributeCertificate ::= SIGNED{TBSAttributeCertificate} * ``` */ export declare type AttributeCertificate = SIGNED<TBSAttributeCertificate>; /** * @summary Decodes an ASN.1 element into a(n) AttributeCertificate * @function * @param {_Element} el The element being decoded. * @returns {AttributeCertificate} The decoded data structure. */ export declare function _decode_AttributeCertificate(el: _Element): AttributeCertificate; /** * @summary Encodes a(n) AttributeCertificate 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 AttributeCertificate, encoded as an ASN.1 Element. */ export declare function _encode_AttributeCertificate(value: AttributeCertificate, elGetter: $.ASN1Encoder<AttributeCertificate>): _Element;