diff options
author | Yicheng Li <yichengli@chromium.org> | 2019-05-22 13:47:14 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-06-07 22:45:22 +0000 |
commit | 8e7a7fb6cf9e7afcd1b80911c14ae76e8b9860fc (patch) | |
tree | d7b36abb4f7c6f9e4244f8c022b6f0119e070073 /include/ec_commands.h | |
parent | 9985215ea27b059e83870d4f7f93918ae058c2dd (diff) | |
download | chrome-ec-8e7a7fb6cf9e7afcd1b80911c14ae76e8b9860fc.tar.gz |
fpsensor: Add API to check FP sensor encryption status.
Add EC command for the host to query FP sensor encryption status.
Currently it's just FP TPM seed has been set or not.
Add unit test for this command. Also add ectool command for querying
encryption status.
BRANCH=nocturne
BUG=chromium:952275
TEST=ran unittests
TEST=tested enrollment, matching and multifinger on DUT nocturne.
TEST=tested querying sensor encryption status using ectool.
Change-Id: I07d1e471ead85a517105b38d1ddd793c3046ce8f
Signed-off-by: Yicheng Li <yichengli@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1633272
Reviewed-by: Nicolas Norvez <norvez@chromium.org>
Diffstat (limited to 'include/ec_commands.h')
-rw-r--r-- | include/ec_commands.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ec_commands.h b/include/ec_commands.h index 9f75e5f278..cb6c5b0b26 100644 --- a/include/ec_commands.h +++ b/include/ec_commands.h @@ -5653,6 +5653,18 @@ struct ec_params_fp_seed { uint8_t seed[FP_CONTEXT_TPM_BYTES]; } __ec_align4; +#define EC_CMD_FP_ENC_STATUS 0x0409 + +/* FP TPM seed has been set or not */ +#define FP_ENC_STATUS_SEED_SET BIT(0) + +struct ec_response_fp_encryption_status { + /* Used bits in encryption engine status */ + uint32_t valid_flags; + /* Encryption engine status */ + uint32_t status; +} __ec_align4; + /*****************************************************************************/ /* Touchpad MCU commands: range 0x0500-0x05FF */ |