UNPKG

@wildboar/pkcs

Version:
33 lines (32 loc) 1.35 kB
import { ASN1Element as _Element } from "asn1-ts"; import * as $ from "asn1-ts/dist/node/functional"; import { AuthenticationType } from "../PKCS-15/AuthenticationType.ta"; import { PathOrObjects } from "../PKCS-15/PathOrObjects.ta"; export { AuthenticationType, _decode_AuthenticationType, _encode_AuthenticationType, } from "../PKCS-15/AuthenticationType.ta"; export { PathOrObjects, _get_decoder_for_PathOrObjects, _get_encoder_for_PathOrObjects, } from "../PKCS-15/PathOrObjects.ta"; /** * @summary AuthObjects * @description * * ### ASN.1 Definition: * * ```asn1 * AuthObjects ::= PathOrObjects {AuthenticationType} * ``` */ export declare type AuthObjects = PathOrObjects<AuthenticationType>; /** * @summary Decodes an ASN.1 element into a(n) AuthObjects * @function * @param {_Element} el The element being decoded. * @returns {AuthObjects} The decoded data structure. */ export declare function _decode_AuthObjects(el: _Element): AuthObjects; /** * @summary Encodes a(n) AuthObjects 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 AuthObjects, encoded as an ASN.1 Element. */ export declare function _encode_AuthObjects(value: AuthObjects, elGetter: $.ASN1Encoder<AuthObjects>): _Element;