适配器工作流

本部分从适配器插件的角度介绍注册工作流。

在 Windows 10 中,我们实现了 V4 引擎接口,该接口提供 2 个新的引擎适配器函数 EngineAdapterCreateKeyEngineAdapterIdentifyFeatureSetSecure。 这些新功能支持使用 TPM 2.0 进行安全生物识别。 下表显示了适配器端注册工作流。

客户端 API 适配器方法
WinBioGetProperty (EXTENDED_ENGINE_INFO) EngineAdapterQueryExtendedInfo
WinBioEnrollBegin
  1. StorageAdapterQueryBySubject
  2. SensorAdapterClearContext
  3. EngineAdapterClearContext
  4. StorageAdapterClearContext
  5. EngineAdapterCreateEnrollment
  6. EngineAdapterSetEnrollmentParameters
WinBioEnrollCapture
  1. SensorAdapterStartCapture
  2. SensorAdapterFinishCapture
  3. SensorAdapterPushDataToEngine[->EngineAdapterAcceptSampleData]
  4. 如果S_OK或WINBIO_I_MORE_DATA
    1. EngineAdapterUpdateEnrollment
    2. [调用方继续注册]
  5. 否则,如果WINBIO_E_BAD_CAPTURE [调用方显示拒绝反馈,继续注册]
  6. 否则,如果出现其他错误
    1. EngineAdapterClearContext
    2. StorageAdapterClearContext
    3. [生物服务中止注册]
WinBioGetProperty (EXTENDED_ENROLLMENT_STATUS) EngineAdapterQueryExtendedEnrollmentStatus
WinBioEnrollCommit
  1. EngineAdapterCheckForDuplicate
  2. 如果可移动数据库
    1. EngineAdapterGetEnrollmentHash
    2. EngineAdapterCommitEnrollment
  3. ElseEngineAdapterCommitEnrollment
WinBioEnrollDiscard
  1. EngineAdapterDiscardEnrollment
  2. EngineAdapterClearContext
  3. StorageAdapterClearContext