Home
last modified time | relevance | path

Searched refs:maxSize (Results 1 – 25 of 35) sorted by relevance

12

/base/user_iam/auth_executor_mgr/common/common/src/
Dbuffer.c28 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid()
29 (buffer->contentSize > buffer->maxSize)) { in IsBufferValid()
70 buffer->maxSize = size; in CreateBuffer()
101 buffer->maxSize = dataSize; in CreateBufferByData()
111 if (memset_s(buffer->buf, buffer->maxSize, 0, buffer->maxSize) != EOK) { in DestoryBuffer()
117 buffer->maxSize = 0; in DestoryBuffer()
130 Buffer *copyBuffer = CreateBuffer(buffer->maxSize); in CopyBuffer()
136 if (memcpy_s(copyBuffer->buf, copyBuffer->maxSize, buffer->buf, buffer->contentSize) != EOK) { in CopyBuffer()
/base/user_iam/pin_auth/hdi/common/src/
Dbuffer.c26 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid()
27 (buffer->contentSize > buffer->maxSize)) { in IsBufferValid()
68 buffer->maxSize = size; in CreateBuffer()
99 buffer->maxSize = dataSize; in CreateBufferByData()
112 if (memcpy_s(buffer->buf, buffer->maxSize, buf, bufSize) != EOK) { in InitBuffer()
131 buffer->maxSize = 0; in DestoryBuffer()
144 Buffer *copyBuffer = CreateBuffer(buffer->maxSize); in CopyBuffer()
150 if (memcpy_s(copyBuffer->buf, copyBuffer->maxSize, buffer->buf, buffer->contentSize) != EOK) { in CopyBuffer()
/base/user_iam/face_auth/services/ca_mock/src/
Dbuffer.cpp28 (buffer->maxSize == 0) || (buffer->maxSize > MAX_BUFFER_SIZE) || in IsBufferValid()
29 (buffer->contentSize > buffer->maxSize)) { in IsBufferValid()
71 buffer->maxSize = size; in CreateBuffer()
84 if (memcpy_s(buffer->buf, buffer->maxSize, buf, bufSize) != EOK) { in InitBuffer()
103 buffer->maxSize = 0; in DestoryBuffer()
116 Buffer *copyBuffer = CreateBuffer(buffer->maxSize); in CopyBuffer()
122 if (memcpy_s(copyBuffer->buf, copyBuffer->maxSize, buffer->buf, buffer->contentSize) != EOK) { in CopyBuffer()
Dadaptor_algorithm.cpp110 size_t pubKeySize = keyPair->pubKey->maxSize; in GenerateEd25519KeyPair()
118 size_t priKeySize = keyPair->priKey->maxSize; in GenerateEd25519KeyPair()
167 size_t signSize = (*sign)->maxSize; in Ed25519Sign()
224 !IsBufferValid(data) || !IsBufferValid(hmac) || hmac->maxSize > UINT_MAX) { in CalcHmac()
228 unsigned int hmacSize = hmac->maxSize; in CalcHmac()
Dface_auth_func.cpp42 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &tempType, sizeof(tempT… in WriteTlvHead()
47 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &length, sizeof(length)… in WriteTlvHead()
61 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, value, length) != EOK) { in WriteTlv()
/base/update/updater/services/script/script_interpreter/
Dscript_scanner.cpp21 int Scanner::LexerInput(char *buf, int maxSize) in LexerInput() argument
24 PkgBuffer data = {reinterpret_cast<uint8_t*>(buf), static_cast<size_t>(maxSize)}; in LexerInput()
25 (void)pkgStream_->Read(data, currPos, maxSize, readLen); in LexerInput()
Dscanner.h51 virtual int LexerInput(char* buf, int maxSize);
/base/telephony/sms_mms/services/
Dsms_base_message.cpp250 int maxSize = 0; in GetSegmentSize() local
252 maxSize = MAX_GSM_7BIT_DATA_LEN; in GetSegmentSize()
254 maxSize = MAX_UCS2_DATA_LEN; in GetSegmentSize()
271 if ((dataLen + headerSize) > maxSize) { in GetSegmentSize()
278 if ((dataLen + headerSize) > maxSize) { in GetSegmentSize()
298 int maxSize = 0; in GetMaxSegmentSize() local
300 maxSize = MAX_GSM_7BIT_DATA_LEN; in GetMaxSegmentSize()
302 maxSize = MAX_UCS2_DATA_LEN; in GetMaxSegmentSize()
315 if ((dataLen + headerSize) > maxSize) { in GetMaxSegmentSize()
319 segSize = maxSize - headerSize; in GetMaxSegmentSize()
[all …]
/base/user_iam/auth_executor_mgr/common/key_mgr/src/
Dtoken_key.c45 if (SecureRandom(g_tokenKey->buf, g_tokenKey->maxSize) != RESULT_SUCCESS) { in InitTokenKey()
49 g_tokenKey->contentSize = g_tokenKey->maxSize; in InitTokenKey()
/base/user_iam/user_auth/services/include/
Dcontext_thread_pool.h47 void SetMaxTaskNum(int maxSize) in SetMaxTaskNum() argument
49 ThreadPool::SetMaxTaskNum(maxSize); in SetMaxTaskNum()
/base/user_iam/auth_executor_mgr/common/adaptor/src/
Dadaptor_algorithm.c109 size_t pubKeySize = keyPair->pubKey->maxSize; in GenerateEd25519KeyPair()
115 size_t priKeySize = keyPair->priKey->maxSize; in GenerateEd25519KeyPair()
164 size_t signSize = (*sign)->maxSize; in Ed25519Sign()
218 !IsBufferValid(data) || !IsBufferValid(hmac) || hmac->maxSize > UINT_MAX) { in IamHmac()
222 uint32_t hmacSize = hmac->maxSize; in IamHmac()
/base/user_iam/pin_auth/hdi/adaptor/src/
Dadaptor_algorithm.c109 size_t pubKeySize = keyPair->pubKey->maxSize; in GenerateEd25519KeyPair()
115 size_t priKeySize = keyPair->priKey->maxSize; in GenerateEd25519KeyPair()
164 size_t signSize = (*sign)->maxSize; in Ed25519Sign()
219 !IsBufferValid(data) || !IsBufferValid(hmac) || hmac->maxSize > UINT_MAX) { in IamHmac()
223 unsigned int hmacSize = hmac->maxSize; in IamHmac()
/base/hiviewdfx/hiview/plugins/faultlogger/service/idl/src/
Dfaultlog_info_ohos.cpp74 const uint32_t maxSize = 128; in Unmarshalling() local
114 if (size > maxSize) { in Unmarshalling()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/
Dstringfilter.cpp86 bool StringFilter::IsValidName(const std::string &text, unsigned int maxSize) in IsValidName() argument
91 if (text.length() > maxSize) { in IsValidName()
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include/
Dstringfilter.h30 bool IsValidName(const std::string &text, unsigned int maxSize);
/base/user_iam/auth_executor_mgr/common/common/inc/
Dbuffer.h26 uint32_t maxSize; member
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_rsa.c64 uint32_t maxSize; in InitRsaKeyBuf() local
66 maxSize = keyMaterial->nSize; in InitRsaKeyBuf()
68 maxSize = keyMaterial->eSize; in InitRsaKeyBuf()
71 if (maxSize < keyMaterial->dSize) { in InitRsaKeyBuf()
72 maxSize = keyMaterial->dSize; in InitRsaKeyBuf()
75 bufBlob->data = HksMalloc(maxSize); in InitRsaKeyBuf()
80 bufBlob->size = maxSize; in InitRsaKeyBuf()
/base/user_iam/face_auth/services/ca_mock/include/
Dbuffer.h29 uint32_t maxSize; member
/base/user_iam/pin_auth/hdi/common/inc/
Dbuffer.h28 uint32_t maxSize; member
/base/user_iam/auth_executor_mgr/common/database/src/
Didm_file_manager.c34 return object->maxSize - object->contentSize; in GetRemainSpace()
44 if (!IsBufferValid(object) || object->maxSize > MAX_BUFFER_LEN / DEFAULT_EXPANSION_RATIO) { in CapacityExpansion()
48 uint32_t targetSize = object->maxSize; in CapacityExpansion()
68 object->maxSize = targetSize; in CapacityExpansion()
359 if (fileOperator->readFile(IDM_USER_INFO, parcel->buf, parcel->maxSize) != RESULT_SUCCESS) { in ReadFileInfo()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account.cpp36 #define RETURN_IF_STRING_IS_EMPTY_OR_OVERSIZE(str, maxSize, msg) … argument
37 …if ((str).empty() || ((str).size() > (maxSize))) { …
38 …T_LOGE("%{public}s, input size: %{public}zu, max size: %{public}zu", msg, (str).size(), maxSize); \
42 #define RETURN_IF_STRING_IS_OVERSIZE(str, maxSize, msg) … argument
43 …if ((str).size() > (maxSize)) { …
44 …T_LOGE("%{public}s, input size: %{public}zu, max size: %{public}zu", msg, (str).size(), maxSize); \
/base/security/appverify/interfaces/innerkits/appverify_lite/src/
Dapp_verify_hap.c97 int maxSize = INT_MAX - chunkSize; in GetChunkSumCount() local
98 if (fileSize > maxSize || coreDirectorySize > maxSize || eocdSize > maxSize) { in GetChunkSumCount()
/base/user_iam/pin_auth/hdi/main/src/
Dpin_func.c172 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &tempType, sizeof(tempT… in WriteTlvHead()
177 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, &length, sizeof(length)… in WriteTlvHead()
191 …if (memcpy_s(buf->buf + buf->contentSize, buf->maxSize - buf->contentSize, value, length) != EOK) { in WriteTlv()
/base/powermgr/battery_manager/charger/backlight/
Dbattery_backlight.cpp71 int maxSize = 64; in InitBacklightSysfs() local
91 if (index >= maxSize) { in InitBacklightSysfs()
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/
Dhiappevent_write.cpp166 uint64_t maxSize = GetMaxStorageSize(); in CleanDirSpace() local
168 while (!files.empty() && currSize > maxSize) { in CleanDirSpace()

12