Home
last modified time | relevance | path

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

/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db.c297 info->authErrorCount = INIT_AUTH_ERROR_COUNT; in InitAntiBruteInfo()
746 *authErrorCount = g_pinDbOp->pinIndex[index].antiBruteInfo.authErrorCount; in GetAntiBruteInfo()
763 static uint64_t GetWaitTime(uint32_t authErrorCount) in GetWaitTime() argument
765 if (authErrorCount < FIRST_ANTI_BRUTE_COUNT) { in GetWaitTime()
768 if (authErrorCount < ATTI_BRUTE_FIRST_STAGE) { in GetWaitTime()
783 if (authErrorCount >= ATTI_BRUTE_SECOND_STAGE) { in GetWaitTime()
791 if (authErrorCount < FIRST_ANTI_BRUTE_COUNT) { in GetNextFailLockoutDuration()
794 if (authErrorCount < SECOND_ANTI_BRUTE_COUNT) { in GetNextFailLockoutDuration()
797 if (authErrorCount < THIRD_ANTI_BRUTE_COUNT) { in GetNextFailLockoutDuration()
800 if (authErrorCount < ATTI_BRUTE_FIRST_STAGE - in GetNextFailLockoutDuration()
[all …]
H A Dpin_db_ops_v0.c34 antiBruteInfoV0->authErrorCount = ATTI_BRUTE_SECOND_STAGE; in GetMaxLockedAntiBruteInfo()
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/inc/
H A Dpin_db.h50 …ultCode GetRemainTimes(uint64_t templateId, uint32_t *remainingAuthTimes, uint32_t authErrorCount);
52 ResultCode GetAntiBruteInfo(uint64_t templateId, uint32_t *authErrorCount, uint64_t *startFreezeTim…
55 int32_t GetNextFailLockoutDuration(uint32_t authErrorCount);
H A Dpin_db_ops_v0.h35 uint32_t authErrorCount; member
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/
H A Dpin_db_test.cpp305 uint32_t authErrorCount = 0; variable
307 result = GetAntiBruteInfo(INVALID_TEMPLATE_ID, &authErrorCount, &startFreezeTime);
313 result = GetAntiBruteInfo(templateId, &authErrorCount, nullptr);
316 result = GetAntiBruteInfo(0, &authErrorCount, &startFreezeTime);
319 result = GetAntiBruteInfo(templateId, &authErrorCount, &startFreezeTime);
/ohos5.0/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()