UNPKG

@wildboar/pkcs

Version:
47 lines 1.54 kB
import { ASN1Element as _Element } from "@wildboar/asn1"; import * as $ from "@wildboar/asn1/functional"; import { FingerPrint } from "../PKCS-15/FingerPrint.ta.mjs"; import { IrisScan } from "../PKCS-15/IrisScan.ta.mjs"; /** * @summary BiometricType * @description * * ### ASN.1 Definition: * * ```asn1 * BiometricType ::= CHOICE { * fingerPrint FingerPrint, * irisScan [0] IrisScan, * -- Possible extensions: * -- voiceScan VoiceScan, * -- faceScan FaceScan, * -- retinaScan Retinascan, * -- handGeometry HandGeometry, * -- writeDynamics WriteDynamics, * -- keyStrokeDynamicsKeyStrokeDynamics, * -- lipDynamics LipDynamics, * ... -- For future extensions * } * ``` */ export type BiometricType = { fingerPrint: FingerPrint; } | { irisScan: IrisScan; } | _Element; /** * @summary Decodes an ASN.1 element into a(n) BiometricType * @function * @param {_Element} el The element being decoded. * @returns {BiometricType} The decoded data structure. */ export declare function _decode_BiometricType(el: _Element): BiometricType; /** * @summary Encodes a(n) BiometricType 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 BiometricType, encoded as an ASN.1 Element. */ export declare function _encode_BiometricType(value: BiometricType, elGetter: $.ASN1Encoder<BiometricType>): _Element; //# sourceMappingURL=BiometricType.ta.d.mts.map