diff options
author | Kevin Chyn <kchyn@google.com> | 2018-09-20 18:42:09 -0700 |
---|---|---|
committer | Kevin Chyn <kchyn@google.com> | 2018-09-24 15:27:03 -0700 |
commit | 2acfd2aab67f3b5e6aae69510f4c830d296eb002 (patch) | |
tree | e20784fdce9cf882963323e56bdeda8ae56dc5e3 /biometrics | |
parent | d8ffb064061b88c9438f3472cb564c5f686d4a17 (diff) | |
download | android_hardware_interfaces-2acfd2aab67f3b5e6aae69510f4c830d296eb002.tar.gz android_hardware_interfaces-2acfd2aab67f3b5e6aae69510f4c830d296eb002.tar.bz2 android_hardware_interfaces-2acfd2aab67f3b5e6aae69510f4c830d296eb002.zip |
Add timeout parameter to generateChallenge
Fixes: 115925222
Test: builds
Change-Id: Idac1730b36eadb5acdb6420cc330585ebb2f3197
Diffstat (limited to 'biometrics')
-rw-r--r-- | biometrics/face/1.0/IBiometricsFace.hal | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/biometrics/face/1.0/IBiometricsFace.hal b/biometrics/face/1.0/IBiometricsFace.hal index f39eaeb2f..1c7bfb9be 100644 --- a/biometrics/face/1.0/IBiometricsFace.hal +++ b/biometrics/face/1.0/IBiometricsFace.hal @@ -78,11 +78,15 @@ interface IBiometricsFace { * template if the operation was preceded by some kind of strong credential * confirmation (e.g. device password). * + * @param challengeTimeoutSec A timeout in seconds, after which the driver + * must invalidate the challenge. This is to prevent bugs or crashes in + * the system from leaving a challenge enabled indefinitely. * @return result, with its "value" parameter representing a "challenge": a * unique and cryptographically secure random token. */ @callflow(next={"enroll", "revokeChallenge", "setRequireAttention"}) - generateChallenge() generates (OptionalUint64 result); + generateChallenge(uint32_t challengeTimeoutSec) + generates (OptionalUint64 result); /** * Enrolls a user's face. |