mirror of
https://gitee.com/openharmony/security_huks
synced 2024-11-27 08:51:08 +00:00
rm check
Signed-off-by: code4lala <fengziteng2@huawei.com> Change-Id: I56da41ac5312874b595d92c87f9edfe87975594d
This commit is contained in:
parent
95878d3e3a
commit
b68859daa9
@ -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,
|
||||
|
@ -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;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user