Searched refs:authErrorCount (Results 1 – 6 of 6) sorted by relevance
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db.c | 297 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 D | pin_db_ops_v0.c | 34 antiBruteInfoV0->authErrorCount = ATTI_BRUTE_SECOND_STAGE; in GetMaxLockedAntiBruteInfo()
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/inc/ |
H A D | pin_db.h | 50 …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 D | pin_db_ops_v0.h | 35 uint32_t authErrorCount; member
|
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/ |
H A D | pin_db_test.cpp | 305 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 D | executor_func_common.c | 360 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()
|