Home
last modified time | relevance | path

Searched refs:maxSeq (Results 1 - 4 of 4) sorted by relevance

/foundation/communication/dsoftbus/core/common/security/sequence_verification/
H A Dsoftbus_sequence_verification.c31 uint32_t offset = (uint32_t)(seqVerifyInfo->maxSeq - recvSeq); in IsPassDuplicateCheck()
44 if (recvSeq - seqVerifyInfo->maxSeq < 0) { in IsPassOverMaxCheck()
52 uint32_t seqOffset = (uint32_t)(recvSeq - seqVerifyInfo->maxSeq + 1); in IsPassOverMaxCheck()
53 seqVerifyInfo->maxSeq = ++recvSeq; in IsPassOverMaxCheck()
68 if (recvSeq < seqVerifyInfo->maxSeq) { in IsPassAllRangeCheck()
81 seqVerifyInfo->maxSeq = recvSeq + 1; in IsPassNormalCheck()
84 /* first disorder package, recvSeq and minSeq/maxSeq are same signs. */ in IsPassNormalCheck()
86 if (recvSeq > seqVerifyInfo->maxSeq) { in IsPassNormalCheck()
91 /* first disorder package, recvSeq and minSeq/maxSeq are different signs. */ in IsPassNormalCheck()
103 if (seqVerifyInfo->maxSeq < in IsPassNoflipDisorderCheck()
[all...]
/foundation/communication/dsoftbus/tests/core/common/sequence_verification/unittest/
H A Dsequence_verification_test.cpp59 seqInfo.maxSeq = INT32_MIN + 1; in HWTEST_F()
78 seqInfo.maxSeq = INT32_MAX - 2; in HWTEST_F()
98 seqInfo.maxSeq = -2; in HWTEST_F()
170 seqInfo.maxSeq = -100; in HWTEST_F()
188 seqInfo.maxSeq = -100; in HWTEST_F()
213 seqInfo.maxSeq = INT32_MAX - 2; in HWTEST_F()
236 seqInfo.maxSeq = INT32_MAX - 2; in HWTEST_F()
259 seqInfo.maxSeq = -30; in HWTEST_F()
278 seqInfo.maxSeq = -30; in HWTEST_F()
342 seqInfo.maxSeq in HWTEST_F()
[all...]
/foundation/communication/dsoftbus/tests/sdk/bus_center/fuzztest/ispassseqcheck_fuzzer/
H A Dispassseqcheck_fuzzer.cpp53 seqInfo.maxSeq = seq; in IsPassSeqCheckSwitch()
60 seqInfo.maxSeq = MAXSEQ; in IsPassSeqCheckSwitch()
67 seqInfo.maxSeq = seq; in IsPassSeqCheckSwitch()
/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_sequence_verification.h31 when minSeq < receive seq < maxSeq, Check whether duplicate package exist, record the package in bitmap.
32 when receive seq >= maxSeq, update maxSeq, record the package in bitmap.
35 int32_t maxSeq; member

Completed in 13 milliseconds