Home
last modified time | relevance | path

Searched refs:authErrorCount (Results 1 - 6 of 6) sorted by relevance

/drivers/peripheral/pin_auth/hdi_service/database/inc/
H A Dpin_db.h50 ResultCode GetRemainTimes(uint64_t templateId, uint32_t *remainingAuthTimes, uint32_t authErrorCount);
52 ResultCode GetAntiBruteInfo(uint64_t templateId, uint32_t *authErrorCount, uint64_t *startFreezeTime);
55 int32_t GetNextFailLockoutDuration(uint32_t authErrorCount);
H A Dpin_db_ops_v0.h35 uint32_t authErrorCount; member
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db.c297 info->authErrorCount = INIT_AUTH_ERROR_COUNT; in InitAntiBruteInfo()
666 *count = g_pinDbOp->pinIndex[index].antiBruteInfo.authErrorCount; in GetAntiBruteCountById()
697 g_pinDbOp->pinIndex[index].antiBruteInfo.authErrorCount = count; in SetAntiBruteInfoById()
730 ResultCode GetAntiBruteInfo(uint64_t templateId, uint32_t *authErrorCount, uint64_t *startFreezeTime) in GetAntiBruteInfo() argument
732 if (authErrorCount == NULL || startFreezeTime == NULL || templateId == INVALID_TEMPLATE_ID) { in GetAntiBruteInfo()
746 *authErrorCount = g_pinDbOp->pinIndex[index].antiBruteInfo.authErrorCount; in GetAntiBruteInfo()
753 static uint64_t ExponentialFuncTime(uint32_t authErrorCount) in ExponentialFuncTime() argument
756 uint32_t exp = (authErrorCount - FIRST_EXPONENTIAL_PARA) / THIRD_EXPONENTIAL_PARA; in ExponentialFuncTime()
763 static uint64_t GetWaitTime(uint32_t authErrorCount) in GetWaitTime() argument
789 GetNextFailLockoutDuration(uint32_t authErrorCount) GetNextFailLockoutDuration() argument
856 GetRemainTimes(uint64_t templateId, uint32_t *remainingAuthTimes, uint32_t authErrorCount) GetRemainTimes() argument
[all...]
H A Dpin_db_ops_v0.c34 antiBruteInfoV0->authErrorCount = ATTI_BRUTE_SECOND_STAGE; in GetMaxLockedAntiBruteInfo()
/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/
H A Dpin_db_test.cpp305 uint32_t authErrorCount = 0; in HWTEST_F() local
307 result = GetAntiBruteInfo(INVALID_TEMPLATE_ID, &authErrorCount, &startFreezeTime); in HWTEST_F()
313 result = GetAntiBruteInfo(templateId, &authErrorCount, nullptr); in HWTEST_F()
316 result = GetAntiBruteInfo(0, &authErrorCount, &startFreezeTime); in HWTEST_F()
319 result = GetAntiBruteInfo(templateId, &authErrorCount, &startFreezeTime); in HWTEST_F()
/drivers/peripheral/pin_auth/hdi_service/main/src/
H A Dexecutor_func_common.c360 uint32_t authErrorCount = INIT_AUTH_ERROR_COUNT; in DoQueryPinInfo() local
362 &(pinCredentialInfo->freezeTime), &authErrorCount); in DoQueryPinInfo()
367 pinCredentialInfo->nextFailLockoutDuration = GetNextFailLockoutDuration(authErrorCount); in DoQueryPinInfo()
371 ret = GetRemainTimes(templateId, &(pinCredentialInfo->remainTimes), authErrorCount); in DoQueryPinInfo()

Completed in 4 milliseconds