Signed-off-by: code4lala <fengziteng2@huawei.com>
Change-Id: I56da41ac5312874b595d92c87f9edfe87975594d
This commit is contained in:
code4lala 2024-06-05 09:16:12 +08:00
parent 95878d3e3a
commit b68859daa9
2 changed files with 1 additions and 13 deletions

View File

@ -873,14 +873,6 @@ int32_t HksCoreSecureAccessInitParams(struct HuksKeyNode *keyNode, const struct
static int32_t HksCheckIsLocalAuth(const struct HksUserAuthToken *authToken)
{
enum {
// see `enum ScheduleMode` in `drivers/peripheral/user_auth/hdi_service/common/inc/defines.h`
SCHEDULE_MODE_AUTH = 1,
};
if (authToken->plaintextData.authMode != SCHEDULE_MODE_AUTH) {
HKS_LOG_E("not SCHEDULE_MODE_AUTH, invalid authMode %" LOG_PUBLIC "u", authToken->plaintextData.authMode);
return HKS_ERROR_NOT_SUPPORTED;
}
enum {
// see `enum TokenType` in `drivers/peripheral/user_auth/hdi_service/common/inc/defines.h`
TOKEN_TYPE_LOCAL_AUTH = 0,

View File

@ -33,10 +33,6 @@
#define HKS_AE_AAD_LEN 12
#define HKS_AES_COMMON_SIZE 1024U
enum {
// see `enum ScheduleMode` in `drivers/peripheral/user_auth/hdi_service/common/inc/defines.h`
SCHEDULE_MODE_AUTH = 1,
};
enum {
// see `enum TokenType` in `drivers/peripheral/user_auth/hdi_service/common/inc/defines.h`
TOKEN_TYPE_LOCAL_AUTH = 0,
@ -49,7 +45,7 @@ struct IDMParams {
uint64_t enrolledId;
uint64_t time;
uint32_t authType;
uint32_t authMode = SCHEDULE_MODE_AUTH;
uint32_t authMode;
uint32_t tokenType = TOKEN_TYPE_LOCAL_AUTH;
};