UNPKG

@wildboar/pkcs

Version:
38 lines 1.24 kB
import { ASN1Element as _Element, GeneralizedTime } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { ReferencedValue } from "../PKCS-15/ReferencedValue.ta.mjs"; /** * @summary LastUpdate * @description * * ### ASN.1 Definition: * * ```asn1 * LastUpdate ::= CHOICE { * generalizedTime GeneralizedTime, * referencedTime ReferencedValue {GeneralizedTime}, * ... * } * ``` */ export type LastUpdate = { generalizedTime: GeneralizedTime; } | { referencedTime: ReferencedValue<GeneralizedTime>; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) LastUpdate * @function * @param {_Element} el The element being decoded. * @returns {LastUpdate} The decoded data structure. */ export declare function _decode_LastUpdate(el: _Element): LastUpdate; /** * @summary Encodes a(n) LastUpdate 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 LastUpdate, encoded as an ASN.1 Element. */ export declare function _encode_LastUpdate(value: LastUpdate, elGetter: $.ASN1Encoder<LastUpdate>): _Element; //# sourceMappingURL=LastUpdate.ta.d.mts.map