@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
49 lines (48 loc) • 1.69 kB
TypeScript
import { ASN1Element as _Element } from "asn1-ts";
import * as $ from "asn1-ts/dist/node/functional";
import { FingerPrint } from "../PKCS-15/FingerPrint.ta";
import { IrisScan } from "../PKCS-15/IrisScan.ta";
export { FingerPrint, _decode_FingerPrint, _encode_FingerPrint, } from "../PKCS-15/FingerPrint.ta";
export { IrisScan, _decode_IrisScan, _encode_IrisScan, } from "../PKCS-15/IrisScan.ta";
/**
* @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 declare 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} el The element being decoded.
* @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;