UNPKG

@wildboar/pkcs

Version:
31 lines (30 loc) 2.02 kB
import { ASN1Element as _Element, NULL } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { CommonAuthenticationObjectAttributes } from "../PKCS-15/CommonAuthenticationObjectAttributes.ta"; import { PKCS15Object } from "../PKCS-15/PKCS15Object.ta"; export { CommonAuthenticationObjectAttributes, _decode_CommonAuthenticationObjectAttributes, _encode_CommonAuthenticationObjectAttributes, } from "../PKCS-15/CommonAuthenticationObjectAttributes.ta"; export { PKCS15Object, _get_decoder_for_PKCS15Object, _get_encoder_for_PKCS15Object, } from "../PKCS-15/PKCS15Object.ta"; /** * @summary AuthenticationObject * @description * * ### ASN.1 Definition: * * ```asn1 * AuthenticationObject {AuthObjectAttributes} ::= PKCS15Object {CommonAuthenticationObjectAttributes, NULL, AuthObjectAttributes} * ``` */ export declare 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>): (el: _Element) => PKCS15Object<CommonAuthenticationObjectAttributes, null, 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>): (value: PKCS15Object<CommonAuthenticationObjectAttributes, null, AuthObjectAttributes>, elGetter: $.ASN1Encoder<PKCS15Object<CommonAuthenticationObjectAttributes, null, AuthObjectAttributes>>) => _Element;