UNPKG

@wildboar/pkcs

Version:
29 lines 1.54 kB
import { NULL } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { CommonAuthenticationObjectAttributes } from "../PKCS-15/CommonAuthenticationObjectAttributes.ta.mjs"; import { PKCS15Object } from "../PKCS-15/PKCS15Object.ta.mjs"; /** * @summary AuthenticationObject * @description * * ### ASN.1 Definition: * * ```asn1 * AuthenticationObject {AuthObjectAttributes} ::= PKCS15Object {CommonAuthenticationObjectAttributes, NULL, AuthObjectAttributes} * ``` */ export type AuthenticationObject<AuthObjectAttributes> = PKCS15Object<CommonAuthenticationObjectAttributes, NULL, AuthObjectAttributes>; /** * @summary Returns a function that will decode an ASN.1 element into a(n) AuthenticationObject * @function * @param {_Element} el The element being decoded. * @returns A function that will decode an ASN.1 element. */ export declare function _get_decoder_for_AuthenticationObject<AuthObjectAttributes>(_decode_AuthObjectAttributes: $.ASN1Decoder<AuthObjectAttributes>): $.ASN1Decoder<AuthenticationObject<AuthObjectAttributes>>; /** * @summary Returns a function that will encode a(n) AuthenticationObject into an ASN.1 Element. * @function * @returns A function that will encode a(n) AuthenticationObject as an ASN.1 element. */ export declare function _get_encoder_for_AuthenticationObject<AuthObjectAttributes>(_encode_AuthObjectAttributes: $.ASN1Encoder<AuthObjectAttributes>): $.ASN1Encoder<AuthenticationObject<AuthObjectAttributes>>; //# sourceMappingURL=AuthenticationObject.ta.d.mts.map