/base/startup/init/interfaces/hals/utils/token/ |
D | hal_token.c | 20 __attribute__((weak)) static int OEMReadToken(char* token, unsigned int len) in OEMReadToken() argument 24 (void)(len); in OEMReadToken() 28 __attribute__((weak)) static int OEMWriteToken(const char* token, unsigned int len) in OEMWriteToken() argument 32 (void)(len); in OEMWriteToken() 36 __attribute__((weak)) static int OEMGetAcKey(char* acKey, unsigned int len) in OEMGetAcKey() argument 40 (void)(len); in OEMGetAcKey() 44 __attribute__((weak)) static int OEMGetProdId(char* productId, unsigned int len) in OEMGetProdId() argument 48 (void)(len); in OEMGetProdId() 52 __attribute__((weak)) static int OEMGetProdKey(char* productKey, unsigned int len) in OEMGetProdKey() argument 56 (void)(len); in OEMGetProdKey() [all …]
|
/base/useriam/user_auth_framework/common/test/ |
D | iam_fuzz_test.cpp | 34 void FillFuzzBuffer(Parcel &parcel, void *p, uint32_t len) in FillFuzzBuffer() argument 36 if (len == 0) { in FillFuzzBuffer() 40 auto buffer = parcel.ReadBuffer(len); in FillFuzzBuffer() 42 IAM_LOGE("ReadBuffer len %{public}u fail", len); in FillFuzzBuffer() 46 if (memcpy_s(p, len, buffer, len) != EOK) { in FillFuzzBuffer() 57 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzUint8Vector() local 58 uint32_t memLen = len * sizeof(uint8_t); in FillFuzzUint8Vector() 59 data.resize(len); in FillFuzzUint8Vector() 61 IAM_LOGI("fill vector len %{public}u ok", len); in FillFuzzUint8Vector() 66 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzInt8Vector() local [all …]
|
/base/useriam/face_auth/test/fuzztest/iamfuzz/ |
D | iam_fuzz_test.cpp | 34 void FillFuzzBuffer(Parcel &parcel, void *p, uint32_t len) in FillFuzzBuffer() argument 36 if (len == 0) { in FillFuzzBuffer() 40 auto buffer = parcel.ReadBuffer(len); in FillFuzzBuffer() 42 IAM_LOGE("ReadBuffer len %{public}u fail", len); in FillFuzzBuffer() 46 if (memcpy_s(p, len, buffer, len) != EOK) { in FillFuzzBuffer() 57 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzUint8Vector() local 58 uint32_t memLen = len * sizeof(uint8_t); in FillFuzzUint8Vector() 59 data.resize(len); in FillFuzzUint8Vector() 61 IAM_LOGI("fill vector len %{public}u ok", len); in FillFuzzUint8Vector() 66 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzInt8Vector() local [all …]
|
/base/useriam/fingerprint_auth/test/fuzztest/iamfuzz/ |
D | iam_fuzz_test.cpp | 34 void FillFuzzBuffer(Parcel &parcel, void *p, uint32_t len) in FillFuzzBuffer() argument 36 if (len == 0) { in FillFuzzBuffer() 40 auto buffer = parcel.ReadBuffer(len); in FillFuzzBuffer() 42 IAM_LOGE("ReadBuffer len %{public}u fail", len); in FillFuzzBuffer() 46 if (memcpy_s(p, len, buffer, len) != EOK) { in FillFuzzBuffer() 57 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzUint8Vector() local 58 uint32_t memLen = len * sizeof(uint8_t); in FillFuzzUint8Vector() 59 data.resize(len); in FillFuzzUint8Vector() 61 IAM_LOGI("fill vector len %{public}u ok", len); in FillFuzzUint8Vector() 66 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzInt8Vector() local [all …]
|
/base/useriam/pin_auth/test/fuzztest/utils_fuzz/ |
D | iam_fuzz_test.cpp | 34 void FillFuzzBuffer(Parcel &parcel, void *p, uint32_t len) in FillFuzzBuffer() argument 36 if (len == 0) { in FillFuzzBuffer() 40 auto buffer = parcel.ReadBuffer(len); in FillFuzzBuffer() 42 IAM_LOGE("ReadBuffer len %{public}u fail", len); in FillFuzzBuffer() 46 if (memcpy_s(p, len, buffer, len) != EOK) { in FillFuzzBuffer() 57 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzUint8Vector() local 58 uint32_t memLen = len * sizeof(uint8_t); in FillFuzzUint8Vector() 59 data.resize(len); in FillFuzzUint8Vector() 61 IAM_LOGI("fill vector len %{public}u ok", len); in FillFuzzUint8Vector() 66 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillFuzzInt8Vector() local [all …]
|
/base/security/appverify/interfaces/innerkits/appverify_lite/src/ |
D | app_common.c | 18 long long HapGetInt64(const unsigned char *buf, int32_t len) in HapGetInt64() argument 24 if (len != sizeof(long long)) { in HapGetInt64() 27 while (len-- > 0) { in HapGetInt64() 28 value = (value << BYTE_BITS) | (*(buf + len)); in HapGetInt64() 33 int32_t HapGetInt(const unsigned char *buf, int32_t len) in HapGetInt() argument 35 uint32_t value = HapGetUnsignedInt(buf, len); in HapGetInt() 39 uint32_t HapGetUnsignedInt(const unsigned char *buf, int32_t len) in HapGetUnsignedInt() argument 45 if (len != sizeof(int)) { in HapGetUnsignedInt() 48 while (len-- > 0) { in HapGetUnsignedInt() 49 value = (value << BYTE_BITS) | (*(buf + len)); in HapGetUnsignedInt() [all …]
|
D | app_centraldirectory.c | 37 if ((offset >= 0) && (hapBuffer->len - offset >= (int)(sizeof(value)))) { in HapPutByte() 43 void HapPutData(const HapBuf *hapBuffer, int32_t offset, const unsigned char *data, int32_t len) in HapPutData() argument 48 if ((data != NULL) && (offset >= 0) && len > 0 && ((hapBuffer->len - offset) >= len)) { in HapPutData() 49 …py_s(((unsigned char *)hapBuffer->buffer + offset), (hapBuffer->len - offset), data, len) != EOK) { in HapPutData() 64 if ((offset >= 0) && ((buffer->len - offset) >= (int)(sizeof(value)))) { in HapSetInt32() 65 HapPutInt32((unsigned char *)buffer->buffer + offset, buffer->len - offset, (int)(value)); in HapSetInt32() 70 bool CreateHapBuffer(HapBuf *hapBuffer, int32_t len) in CreateHapBuffer() argument 72 if (hapBuffer == NULL || len <= 0) { in CreateHapBuffer() 76 hapBuffer->buffer = APPV_MALLOC(len); in CreateHapBuffer() 81 hapBuffer->len = len; in CreateHapBuffer() [all …]
|
/base/security/crypto_framework/frameworks/key/ |
D | key_utils.c | 47 if (src == NULL || src->x.data == NULL || src->x.len == 0 || in CopyPoint() 48 src->y.data == NULL || src->y.len == 0 || dest == NULL) { in CopyPoint() 52 dest->x.data = (unsigned char *)HcfMalloc(src->x.len, 0); in CopyPoint() 57 dest->y.data = (unsigned char *)HcfMalloc(src->y.len, 0); in CopyPoint() 64 (void)memcpy_s(dest->x.data, src->x.len, src->x.data, src->x.len); in CopyPoint() 65 (void)memcpy_s(dest->y.data, src->y.len, src->y.data, src->y.len); in CopyPoint() 66 dest->x.len = src->x.len; in CopyPoint() 67 dest->y.len = src->y.len; in CopyPoint() 96 tmpDest->p.data = (unsigned char *)HcfMalloc(tmpSrc->p.len, 0); in CopyEcField() 104 (void)memcpy_s(tmpDest->p.data, tmpSrc->p.len, tmpSrc->p.data, tmpSrc->p.len); in CopyEcField() [all …]
|
D | asy_key_generator.c | 136 if ((paramsSpec->p.data == NULL) || (paramsSpec->p.len == 0)) { in IsDsaCommParamsSpecValid() 140 if ((paramsSpec->q.data == NULL) || (paramsSpec->q.len == 0)) { in IsDsaCommParamsSpecValid() 144 if ((paramsSpec->g.data == NULL) || (paramsSpec->g.len == 0)) { in IsDsaCommParamsSpecValid() 156 if ((paramsSpec->pk.data == NULL) || (paramsSpec->pk.len == 0)) { in IsDsaPubKeySpecValid() 168 if ((paramsSpec->pk.data == NULL) || (paramsSpec->pk.len == 0)) { in IsDsaKeyPairSpecValid() 172 if ((paramsSpec->sk.data == NULL) || (paramsSpec->sk.len == 0)) { in IsDsaKeyPairSpecValid() 201 if ((paramsSpec->p.data == NULL) || (paramsSpec->p.len == 0)) { in IsDhCommParamsSpecValid() 205 if ((paramsSpec->g.data == NULL) || (paramsSpec->g.len == 0)) { in IsDhCommParamsSpecValid() 217 if ((paramsSpec->sk.data == NULL) || (paramsSpec->sk.len == 0)) { in IsDhPriKeySpecValid() 229 if ((paramsSpec->pk.data == NULL) || (paramsSpec->pk.len == 0)) { in IsDhPubKeySpecValid() [all …]
|
/base/security/crypto_framework/test/unittest/src/ |
D | ecc_common_param_spec.c | 39 HcfBigInteger retBigInt = { .data = NULL, .len = 0 }; in ConstructEccKeyPairBigInt() 45 eccKeyPairSpec->pk.x.len = retBigInt.len; in ConstructEccKeyPairBigInt() 51 eccKeyPairSpec->pk.x.len = 0; in ConstructEccKeyPairBigInt() 55 eccKeyPairSpec->pk.y.len = retBigInt.len; in ConstructEccKeyPairBigInt() 61 eccKeyPairSpec->pk.x.len = 0; in ConstructEccKeyPairBigInt() 64 eccKeyPairSpec->pk.y.len = 0; in ConstructEccKeyPairBigInt() 68 eccKeyPairSpec->sk.len = retBigInt.len; in ConstructEccKeyPairBigInt() 96 …((HcfECFieldFp *)(eccKeyPairSpec->base.field))->p.len = ((HcfECFieldFp *)(eccCommSpec->field))->p.… in ConstructEccKeyPairParamsSpec() 98 eccKeyPairSpec->base.a.len = eccCommSpec->a.len; in ConstructEccKeyPairParamsSpec() 100 eccKeyPairSpec->base.b.len = eccCommSpec->b.len; in ConstructEccKeyPairParamsSpec() [all …]
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | soft_bus_socket_mock.cpp | 38 int SendBytes(int sessionId, const void *data, unsigned int len) in SendBytes() argument 40 ACCESSTOKEN_LOG_DEBUG(LABEL, "len: %{public}d", len); in SendBytes() 44 DecompressMock(reinterpret_cast<const unsigned char *>(data), len); in SendBytes() 53 uLong len = 1048576; in DecompressMock() local 54 unsigned char *buf = static_cast<unsigned char *>(malloc(len + 1)); in DecompressMock() 59 (void)memset_s(buf, len + 1, 0, len + 1); in DecompressMock() 60 int result = uncompress(buf, &len, const_cast<unsigned char *>(bytes), length); in DecompressMock() 64 static_cast<int>(len), length); in DecompressMock() 68 buf[len] = '\0'; in DecompressMock() 84 uLong len = compressBound(json.size()); in CompressMock() local [all …]
|
/base/startup/init/interfaces/innerkits/token/src/token_impl_hal/ |
D | token.c | 21 int ReadToken(char *token, unsigned int len) in ReadToken() argument 28 return HalReadToken(token, len); in ReadToken() 31 int WriteToken(const char *token, unsigned int len) in WriteToken() argument 38 return HalWriteToken(token, len); in WriteToken() 41 int GetAcKey(char *acKey, unsigned int len) in GetAcKey() argument 48 return HalGetAcKey(acKey, len); in GetAcKey() 51 int GetProdId(char *productId, unsigned int len) in GetProdId() argument 58 return HalGetProdId(productId, len); in GetProdId() 61 int GetProdKey(char *productKey, unsigned int len) in GetProdKey() argument 68 return HalGetProdKey(productKey, len); in GetProdKey()
|
/base/hiviewdfx/hilog_lite/frameworks/mini/ |
D | hiview_output_log.c | 128 void OutputLog(const uint8 *data, uint32 len) in OutputLog() argument 136 if (g_hilogOutputProc(hiLogContent, len) == TRUE) { in OutputLog() 175 if (WriteToCache(&g_logCache, data, len) != (int32)len) { in OutputLog() 182 if (WriteToCache(&g_logCache, (uint8 *)data, len) != (int32)len) { in OutputLog() 204 WriteToCache(&g_logCache, (uint8 *)data, len); in OutputLog() 213 int32 len; in OutputLogRealtime() local 223 len = logContent.commonContent.valueNumber * sizeof(uint32); in OutputLogRealtime() 224 if (len > 0 && ReadFromCache(&g_logCache, (uint8 *)&(logContent.values), len) != len) { in OutputLogRealtime() 227 len = LogContentFmt(tempOutStr, sizeof(tempOutStr), (uint8 *)&logContent); in OutputLogRealtime() 228 if (len <= 0) { in OutputLogRealtime() [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/ |
D | hisysevent_record_c.cpp | 49 int GetParamValues(const HiSysEventRecordC& record, const char* name, T** value, size_t& len) in GetParamValues() argument 62 len = dataVec.size(); in GetParamValues() 63 T* data = new(std::nothrow) T[len]; in GetParamValues() 64 for (size_t i = 0; i < len; i++) { in GetParamValues() 71 int GetParamValues(const HiSysEventRecordC& record, const char* name, char*** value, size_t& len) in GetParamValues() argument 84 return OHOS::HiviewDFX::StringUtil::ConvertCStringVec(dataVec, value, len); in GetParamValues() 87 int GetParamNames(const HiSysEventRecordC& record, char*** names, size_t& len) in GetParamNames() argument 98 return OHOS::HiviewDFX::StringUtil::ConvertCStringVec(dataVec, names, len); in GetParamNames() 121 …etParamInt64Values(const HiSysEventRecordC& record, const char* name, int64_t** value, size_t& len) in GetParamInt64Values() argument 123 return GetParamValues<int64_t>(record, name, value, len); in GetParamInt64Values() [all …]
|
/base/security/crypto_framework/test/unittest/src/ecc/ |
D | ecc_asy_key_common.cpp | 47 (reinterpret_cast<HcfECFieldFp *>(eccCommSpec->field))->p.len = NID_SECP192R1_LEN; in ConstructEcc192CommParamsSpec() 49 eccCommSpec->a.len = NID_SECP192R1_LEN; in ConstructEcc192CommParamsSpec() 51 eccCommSpec->b.len = NID_SECP192R1_LEN; in ConstructEcc192CommParamsSpec() 53 eccCommSpec->g.x.len = NID_SECP192R1_LEN; in ConstructEcc192CommParamsSpec() 55 eccCommSpec->g.y.len = NID_SECP192R1_LEN; in ConstructEcc192CommParamsSpec() 57 eccCommSpec->n.len = NID_SECP192R1_LEN; in ConstructEcc192CommParamsSpec() 75 (reinterpret_cast<HcfECFieldFp *>(eccCommSpec->field))->p.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec() 77 eccCommSpec->a.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec() 79 eccCommSpec->b.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec() 81 eccCommSpec->g.x.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec() [all …]
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | number_data.cpp | 30 int len = strlen(data.numFormat); in StyleData() local 31 numFormat = NewArrayAndCopy(data.numFormat, len); in StyleData() 34 int len = strlen(data.entireFormat); in StyleData() local 35 entireFormat = I18nNewCharString(data.entireFormat, len); in StyleData() 52 int len = strlen(data.numFormat); in operator =() local 53 numFormat = I18nNewCharString(data.numFormat, len); in operator =() 56 int len = strlen(data.entireFormat); in operator =() local 57 entireFormat = I18nNewCharString(data.entireFormat, len); in operator =() 97 void NumberData::ParsePattern(const char *pattern, const int len) in ParsePattern() argument 99 bool isDec = CalculateDecLength(pattern, len); in ParsePattern() [all …]
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
D | cipher_aes_openssl.c | 54 switch (symKey->keyMaterial.len) { in CipherEcbType() 69 switch (symKey->keyMaterial.len) { in CipherCbcType() 84 switch (symKey->keyMaterial.len) { in CipherCtrType() 99 switch (symKey->keyMaterial.len) { in CipherOfbType() 114 switch (symKey->keyMaterial.len) { in CipherCfbType() 129 switch (symKey->keyMaterial.len) { in CipherCfb1Type() 144 switch (symKey->keyMaterial.len) { in CipherCfb128Type() 159 switch (symKey->keyMaterial.len) { in CipherCfb8Type() 175 switch (symKey->keyMaterial.len) { in CipherCcmType() 190 switch (symKey->keyMaterial.len) { in CipherGcmType() [all …]
|
/base/telephony/call_manager/services/telephony_interaction/src/ |
D | call_status_callback_stub.cpp | 206 int32_t len = data.ReadInt32(); in OnUpdateEventReport() local 207 if (len <= 0 || len >= MAX_LEN) { in OnUpdateEventReport() 208 TELEPHONY_LOGE("Invalid parameter, len = %{public}d", len); in OnUpdateEventReport() 211 …if ((parcelPtr = reinterpret_cast<const CellularCallEventInfo *>(data.ReadRawData(len))) == nullpt… in OnUpdateEventReport() 212 TELEPHONY_LOGE("reading raw data failed, length = %d", len); in OnUpdateEventReport() 245 int32_t len = data.ReadInt32(); in OnUpdateGetWaitingResult() local 246 if (len <= 0 || len >= MAX_LEN) { in OnUpdateGetWaitingResult() 247 TELEPHONY_LOGE("Invalid parameter, len = %{public}d", len); in OnUpdateGetWaitingResult() 250 … if ((parcelPtr = reinterpret_cast<const CallWaitResponse *>(data.ReadRawData(len))) == nullptr) { in OnUpdateGetWaitingResult() 251 TELEPHONY_LOGE("reading raw data failed, length = %d", len); in OnUpdateGetWaitingResult() [all …]
|
/base/startup/init/interfaces/innerkits/syspara/ |
D | param_comm.c | 61 INIT_LOCAL_API int IsValidParamValue(const char *value, uint32_t len) in IsValidParamValue() argument 63 if ((value == NULL) || (strlen(value) + 1 > len)) { in IsValidParamValue() 69 INIT_LOCAL_API int GetParameter_(const char *key, const char *def, char *value, uint32_t len) in GetParameter_() argument 71 if ((key == NULL) || (value == NULL) || (len > (uint32_t)PARAM_BUFFER_MAX)) { in GetParameter_() 74 uint32_t size = len; in GetParameter_() 80 if (strlen(def) > len) { in GetParameter_() 83 ret = strcpy_s(value, len, def); in GetParameter_() 85 } else if (size > len) { in GetParameter_() 89 size = len; in GetParameter_() 103 uint32_t len = 0; in GetProperty() local [all …]
|
/base/startup/appspawn/interfaces/innerkits/client/ |
D | appspawn_socket.cpp | 64 int len = 0; in PackSocketAddr() local 66 len = snprintf_s(socketAddr_.sun_path, pathSize, (pathSize - 1), "%s", socketName_.c_str()); in PackSocketAddr() 68 len = snprintf_s(socketAddr_.sun_path, pathSize, (pathSize - 1), "%s%s", in PackSocketAddr() 71 APPSPAWN_CHECK(static_cast<int>(pathLen) == len, return -1, "Failed to copy socket path"); in PackSocketAddr() 101 int AppSpawnSocket::ReadSocketMessage(int socketFd, void *buf, int len) in ReadSocketMessage() argument 103 if (socketFd < 0 || len <= 0 || buf == nullptr) { in ReadSocketMessage() 104 …SPAWN_LOGE("Invalid args: socket %{public}d, len %{public}d, buf might be nullptr", socketFd, len); in ReadSocketMessage() 108 APPSPAWN_CHECK(memset_s(buf, len, 0, len) == EOK, return -1, "Failed to memset read buf"); in ReadSocketMessage() 110 ssize_t rLen = TEMP_FAILURE_RETRY(read(socketFd, buf, len)); in ReadSocketMessage() 112 rLen = TEMP_FAILURE_RETRY(read(socketFd, buf, len)); in ReadSocketMessage() [all …]
|
/base/tee/tee_client/services/authentication/ |
D | tee_get_native_cert.c | 24 static int SetPathToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, const char *path) in SetPathToBuf() argument 45 *len += (uint32_t)sizeof(pathLen); in SetPathToBuf() 60 *len += num; in SetPathToBuf() 66 static int SetUidToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, unsigned int caUid) in SetUidToBuf() argument 85 *len += (uint32_t)sizeof(pubkeyLen); in SetUidToBuf() 100 *len += pubkeyLen; in SetUidToBuf() 105 static int SetUserInfoToBuf(uint8_t *buffer, uint32_t *len, uint32_t *inputLen, unsigned int caUid) in SetUserInfoToBuf() argument 109 ret = SetUidToBuf(buffer, len, inputLen, caUid); in SetUserInfoToBuf() 117 int TeeGetNativeCert(int caPid, unsigned int caUid, uint32_t *len, uint8_t *buffer) in TeeGetNativeCert() argument 122 bool invalid = (len == NULL) || (buffer == NULL); in TeeGetNativeCert() [all …]
|
/base/startup/init/interfaces/innerkits/token/src/token_impl_posix/ |
D | token.c | 40 int ReadToken(char *token, unsigned int len) in ReadToken() argument 54 ret = HalReadToken(token, len); in ReadToken() 60 int WriteToken(const char *token, unsigned int len) in WriteToken() argument 74 ret = HalWriteToken(token, len); in WriteToken() 80 int GetAcKey(char *acKey, unsigned int len) in GetAcKey() argument 91 return HalGetAcKey(acKey, len); in GetAcKey() 94 int GetProdId(char *productId, unsigned int len) in GetProdId() argument 101 return HalGetProdId(productId, len); in GetProdId() 104 int GetProdKey(char *productKey, unsigned int len) in GetProdKey() argument 116 return HalGetProdKey(productKey, len); in GetProdKey()
|
/base/update/updater/services/flow_update/update_bin/ |
D | bin_flow_update.cpp | 54 int32_t BinFlowUpdate::StartBinFlowUpdate(uint8_t *data, uint32_t len) in StartBinFlowUpdate() argument 56 if (data == nullptr || len == 0 || pkgManager_ == nullptr) { in StartBinFlowUpdate() 60 uint32_t remainLen = len; in StartBinFlowUpdate() 63 if (!AddRemainData(data + len - remainLen, remainLen)) { in StartBinFlowUpdate() 86 bool BinFlowUpdate::AddRemainData(uint8_t *data, uint32_t &len) in AddRemainData() argument 88 …uint32_t copySize = std::min(static_cast<size_t>(len), static_cast<size_t>(maxBufSize_ - curlen_)); in AddRemainData() 94 len -= copySize; in AddRemainData() 99 uint32_t BinFlowUpdate::UpdateBinHead(uint8_t *data, uint32_t &len) in UpdateBinHead() argument 102 PkgBuffer buffer(data, len); in UpdateBinHead() 115 if (pkgInfo == nullptr || pkgInfo->updateFileHeadLen == 0 || len < pkgInfo->updateFileHeadLen) { in UpdateBinHead() [all …]
|
/base/update/updater/services/rust/hash_signed_data/src/ |
D | evp.rs | 22 let len = in_data.len(); in get_b64_decode_len() localVariable 23 if len == 0 || len % 4 != 0 { // base64 content len must be a multiple of 4 in get_b64_decode_len() 27 if in_data[len - 1] == b'=' { in get_b64_decode_len() 30 if in_data[len - 2] == b'=' { in get_b64_decode_len() 33 Ok(((len >> 2) * 3, padding)) // 3 binary format bytes => 24bits => 4 base64 format character in get_b64_decode_len() 42 …if unsafe { ffi::EVP_DecodeBlock(out_data.as_mut_ptr(), in_data.as_ptr(), in_data.len() as i32) } … in evp_decode_block()
|
/base/security/device_auth/deps_adapter/key_management_adapter/interfaces/ |
D | huks_adapter.h | 28 #define CHECK_LEN_ZERO_RETURN_ERROR_CODE(len, paramTag) \ argument 30 if ((len) == 0) { \ 44 #define CHECK_LEN_LOWER_RETURN(len, min, paramTag) \ argument 46 if ((len) < (min)) { \ 52 #define CHECK_LEN_HIGHER_RETURN(len, max, paramTag) \ argument 54 if ((len) > (max)) { \ 60 #define CHECK_LEN_EQUAL_RETURN(len, value, paramTag) \ argument 62 if ((len) != (value)) { \
|