/base/hiviewdfx/hiview/base/event_raw/decoded/ |
D | raw_data_decoder.cpp | 24 bool RawDataDecoder::FloatingNumberDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, doub… in FloatingNumberDecoded() argument 26 if (rawData == nullptr || pos >= maxLen) { in FloatingNumberDecoded() 30 if (!UnsignedVarintDecoded(rawData, maxLen, pos, valByteCnt)) { in FloatingNumberDecoded() 33 if ((pos + valByteCnt) > maxLen) { in FloatingNumberDecoded() 54 bool RawDataDecoder::SignedVarintDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, int64_… in SignedVarintDecoded() argument 56 if (rawData == nullptr || pos >= maxLen) { in SignedVarintDecoded() 60 if (!UnsignedVarintDecoded(rawData, maxLen, pos, uval)) { in SignedVarintDecoded() 68 bool RawDataDecoder::StringValueDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, std::st… in StringValueDecoded() argument 70 if (rawData == nullptr || pos >= maxLen) { in StringValueDecoded() 74 if (!UnsignedVarintDecoded(rawData, maxLen, pos, valByteCnt) || in StringValueDecoded() [all …]
|
D | decoded_event.cpp | 274 void DecodedEvent::ParseHeader(const size_t maxLen) in ParseHeader() argument 277 if ((pos_ + sizeof(struct HiSysEventHeader)) > maxLen) { in ParseHeader() 285 if (((pos_ + sizeof(struct TraceInfo)) > maxLen)) { in ParseHeader() 294 void DecodedEvent::ParseCustomizedParams(const size_t maxLen) in ParseCustomizedParams() argument 296 if ((pos_ + sizeof(int32_t)) > maxLen) { in ParseCustomizedParams() 304 auto decodedParam = ParseCustomizedParam(maxLen); in ParseCustomizedParams() 316 std::shared_ptr<DecodedParam> DecodedEvent::CreateFloatingNumTypeDecodedParam(const size_t maxLen, in CreateFloatingNumTypeDecodedParam() argument 320 return std::make_shared<FloatingNumberDecodedArrayParam>(rawData_, maxLen, pos_, key); in CreateFloatingNumTypeDecodedParam() 322 return std::make_shared<FloatingNumberDecodedParam>(rawData_, maxLen, pos_, key); in CreateFloatingNumTypeDecodedParam() 325 std::shared_ptr<DecodedParam> DecodedEvent::CreateSignedVarintTypeDecodedParam(const size_t maxLen, in CreateSignedVarintTypeDecodedParam() argument [all …]
|
/base/theme/screenlock_mgr/frameworks/js/napi/src/ |
D | screenlock_js_util.cpp | 26 size_t maxLen = ScreenLockJsUtil::MAX_LEN; in Convert2String() local 27 napi_status status = napi_get_value_string_utf8(env, jsString, nullptr, 0, &maxLen); in Convert2String() 30 maxLen = ScreenLockJsUtil::MAX_LEN; in Convert2String() 32 if (maxLen == 0) { in Convert2String() 35 char *buf = new (std::nothrow) char[maxLen + 1]; in Convert2String() 40 status = napi_get_value_string_utf8(env, jsString, buf, maxLen + 1, &len); in Convert2String()
|
/base/hiviewdfx/hiview/base/event_raw/include/decoded/ |
D | decoded_param.h | 31 DecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in DecodedParam() argument 32 : rawData_(rawData), maxLen_(maxLen), pos_(pos), key_(key) in DecodedParam() 64 …UnsignedVarintDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& … in UnsignedVarintDecodedParam() argument 65 : DecodedParam(rawData, maxLen, pos, key) {} in UnsignedVarintDecodedParam() 77 …UnsignedVarintDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::str… in UnsignedVarintDecodedArrayParam() argument 78 : DecodedParam(rawData, maxLen, pos, key) {} in UnsignedVarintDecodedArrayParam() 90 …SignedVarintDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& ke… in SignedVarintDecodedParam() argument 91 : DecodedParam(rawData, maxLen, pos, key) {} in SignedVarintDecodedParam() 103 …SignedVarintDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::strin… in SignedVarintDecodedArrayParam() argument 104 : DecodedParam(rawData, maxLen, pos, key) {} in SignedVarintDecodedArrayParam() [all …]
|
D | raw_data_decoder.h | 26 …static bool FloatingNumberDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, double& dest… 27 …static bool SignedVarintDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, int64_t& dest); 28 …static bool StringValueDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, std::string& de… 29 …static bool UnsignedVarintDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, uint64_t& de… 30 …static bool ValueTypeDecoded(uint8_t* rawData, const size_t maxLen, size_t& pos, struct ParamValue…
|
D | decoded_event.h | 47 void ParseHeader(const size_t maxLen); 48 void ParseCustomizedParams(const size_t maxLen); 49 std::shared_ptr<DecodedParam> ParseCustomizedParam(const size_t maxLen); 113 …std::shared_ptr<DecodedParam> CreateFloatingNumTypeDecodedParam(const size_t maxLen, const std::st… 115 …std::shared_ptr<DecodedParam> CreateSignedVarintTypeDecodedParam(const size_t maxLen, const std::s… 117 …std::shared_ptr<DecodedParam> CreateStringTypeDecodedParam(const size_t maxLen, const std::string&… 119 …std::shared_ptr<DecodedParam> CreateUnsignedVarintTypeDecodedParam(const size_t maxLen, const std:…
|
/base/web/webview/test/fuzztest/ohos_adapter/distributeddatamgr_adapter/webdatabase/gethttpauthcredentials_fuzzer/ |
D | gethttpauthcredentials_fuzzer.cpp | 28 constexpr int32_t maxLen = 256; in DoSomethingInterestingWithMyAPI() local 35 char password[maxLen + 1] = {0}; in DoSomethingInterestingWithMyAPI() 36 …BaseAdapterImpl::GetInstance().GetHttpAuthCredentials(host, realm, username, password, maxLen + 1); in DoSomethingInterestingWithMyAPI() 37 (void)memset_s(password, maxLen + 1, 0, maxLen + 1); in DoSomethingInterestingWithMyAPI()
|
/base/security/certificate_framework/frameworks/common/v1.0/src/ |
D | cf_check.c | 21 int32_t CfCheckBlob(const CfBlob *blob, uint32_t maxLen) in CfCheckBlob() argument 23 if ((blob == NULL) || (blob->data == NULL) || (blob->size == 0) || (blob->size > maxLen)) { in CfCheckBlob() 30 int32_t CfCheckEncodingBlob(const CfEncodingBlob *blob, uint32_t maxLen) in CfCheckEncodingBlob() argument 32 if ((blob == NULL) || (blob->data == NULL) || (blob->len == 0) || (blob->len > maxLen)) { in CfCheckEncodingBlob()
|
D | utils.c | 21 bool IsStrValid(const char *str, uint32_t maxLen) in IsStrValid() argument 28 if (strnlen(str, maxLen) >= maxLen) { in IsStrValid()
|
/base/theme/wallpaper_mgr/frameworks/js/napi/ |
D | wallpaper_js_util.cpp | 26 size_t maxLen = WallpaperJSUtil::MAX_LEN; in Convert2String() local 27 napi_status status = napi_get_value_string_utf8(env, jsString, NULL, 0, &maxLen); in Convert2String() 30 maxLen = WallpaperJSUtil::MAX_LEN; in Convert2String() 32 if (maxLen == 0) { in Convert2String() 35 char *buf = new (std::nothrow) char[maxLen + 1](); in Convert2String() 40 status = napi_get_value_string_utf8(env, jsString, buf, maxLen + 1, &len); in Convert2String()
|
/base/security/crypto_framework/common/src/ |
D | utils.c | 21 bool IsStrValid(const char *str, uint32_t maxLen) in IsStrValid() argument 28 if (strnlen(str, maxLen) >= maxLen) { in IsStrValid()
|
/base/sensors/medical_sensor/frameworks/native/medical_sensor/src/ |
D | my_file_descriptor_listener.cpp | 31 constexpr int32_t maxLen = sizeof(struct TransferMedicalSensorEvents) * RECEIVE_DATA_SIZE; variable 36 receiveDataBuff_(new (std::nothrow) TransferMedicalSensorEvents[maxLen]) in MyFileDescriptorListener() 49 receiveDataBuff_ = new (std::nothrow) TransferMedicalSensorEvents[maxLen]; in OnReadable() 51 int32_t len = recv(fileDescriptor, receiveDataBuff_, maxLen, NULL); in OnReadable() 66 len = recv(fileDescriptor, receiveDataBuff_, maxLen, NULL); in OnReadable()
|
/base/security/certificate_framework/frameworks/common/v1.0/inc/ |
D | cf_check.h | 26 int32_t CfCheckBlob(const CfBlob *blob, uint32_t maxLen); 27 int32_t CfCheckEncodingBlob(const CfEncodingBlob *blob, uint32_t maxLen);
|
D | utils.h | 29 bool IsStrValid(const char *str, uint32_t maxLen);
|
/base/useriam/user_auth_framework/frameworks/js/napi/user_auth/src/ |
D | user_auth_widget_mgr_v10.cpp | 113 static const size_t maxLen = 10; in On() local 114 char type[maxLen] = {0}; in On() 115 size_t len = maxLen; in On() 157 static const size_t maxLen = 10; in Off() local 158 char type[maxLen] = {0}; in Off() 159 size_t len = maxLen; in Off()
|
D | auth_instance_v9.cpp | 179 static const size_t maxLen = 10; in On() local 180 char str[maxLen] = {0}; in On() 181 size_t len = maxLen; in On() 223 static const size_t maxLen = 10; in Off() local 224 char str[maxLen] = {0}; in Off() 225 size_t len = maxLen; in Off()
|
D | user_auth_impl.cpp | 135 static const size_t maxLen = 20; in ParseExecuteAuthType() local 136 char str[maxLen] = {0}; in ParseExecuteAuthType() 137 size_t len = maxLen; in ParseExecuteAuthType() 163 static const size_t maxLen = 20; in ParseExecuteSecureLevel() local 164 char str[maxLen] = {0}; in ParseExecuteSecureLevel() 165 size_t len = maxLen; in ParseExecuteSecureLevel()
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/key_agreement/src/ |
D | ecdh_openssl.c | 91 size_t maxLen; in EcdhDerive() local 92 if (Openssl_EVP_PKEY_derive(ctx, NULL, &maxLen) != HCF_OPENSSL_SUCCESS) { in EcdhDerive() 97 uint8_t *secretData = (uint8_t *)HcfMalloc(maxLen, 0); in EcdhDerive() 103 size_t actualLen = maxLen; in EcdhDerive() 111 if (actualLen > maxLen) { in EcdhDerive()
|
/base/security/crypto_framework/test/fuzztest/crypto_operation/hcfciphercreate_fuzzer/ |
D | hcfciphercreate_fuzzer.cpp | 39 int32_t maxLen = *cipherTextLen; in AesEncrypt() local 51 (void)memcpy_s(cipherText, maxLen, output.data, output.len); in AesEncrypt() 62 … (void)memcpy_s(cipherText + *cipherTextLen, maxLen - *cipherTextLen, output.data, output.len); in AesEncrypt() 78 int32_t maxLen = cipherTextLen; in AesDecrypt() local 89 (void)memcpy_s(cipherText, maxLen, output.data, output.len); in AesDecrypt() 102 … (void)memcpy_s(cipherText + cipherTextLen, maxLen - cipherTextLen, output.data, output.len); in AesDecrypt()
|
/base/startup/appspawn/test/moduletest/ |
D | appspawn_test_client.h | 66 const int maxLen = 5 * 1024; in ClientSendMsg() local 68 if ((len - curr) > maxLen) { in ClientSendMsg() 69 real = maxLen; in ClientSendMsg()
|
/base/useriam/face_auth/frameworks/js/napi/src/ |
D | face_auth_napi.cpp | 125 static constexpr int maxLen = 25; in SetSurfaceId() local 126 char buf[maxLen] = {'\0'}; in SetSurfaceId() 128 ret = napi_get_value_string_utf8(env, argv, buf, maxLen, &len); in SetSurfaceId() 134 buf[maxLen - 1] = '\0'; in SetSurfaceId()
|
/base/security/device_auth/common_lib/impl/src/ |
D | uint8buff_utils.c | 77 bool IsUint8BuffValid(const Uint8Buff *buff, uint32_t maxLen) in IsUint8BuffValid() argument 79 … return ((buff != NULL) && (buff->val != NULL) && (0 < buff->length) && (buff->length <= maxLen)); in IsUint8BuffValid()
|
/base/security/crypto_framework/common/inc/ |
D | utils.h | 28 bool IsStrValid(const char *str, uint32_t maxLen);
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/ |
D | dsa_openssl.c | 366 size_t maxLen; in EngineDsaSignDoFinal() local 367 if (Openssl_EVP_DigestSignFinal(impl->mdCtx, NULL, &maxLen) != HCF_OPENSSL_SUCCESS) { in EngineDsaSignDoFinal() 371 uint8_t *signatureData = (uint8_t *)HcfMalloc(maxLen, 0); in EngineDsaSignDoFinal() 376 size_t actualLen = maxLen; in EngineDsaSignDoFinal() 382 if (actualLen > maxLen) { in EngineDsaSignDoFinal() 407 size_t maxLen; in EngineDsaSignWithoutDigestDoFinal() local 408 if (Openssl_EVP_PKEY_sign(impl->pkeyCtx, NULL, &maxLen, in EngineDsaSignWithoutDigestDoFinal() 413 uint8_t *signatureData = (uint8_t *)HcfMalloc(maxLen, 0); in EngineDsaSignWithoutDigestDoFinal() 418 size_t actualLen = maxLen; in EngineDsaSignWithoutDigestDoFinal() 425 if (actualLen > maxLen) { in EngineDsaSignWithoutDigestDoFinal()
|
/base/security/device_security_level/oem_property/ohos/common/ |
D | dslm_ohos_request.h | 28 int32_t GetCredFromCurrentDevice(char *credStr, uint32_t maxLen);
|