/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_ed25519tox25519.c | 323 uint32_t tmpSize = (uint32_t)BN_num_bytes(var->c); in BnOperationOfPubKeyConversion() local 324 HKS_IF_NOT_SUCC_BREAK(FillPubKeyByZero(tmpKey, &tmpSize)) in BnOperationOfPubKeyConversion() 325 SwapEndianThirtyTwoByte(tmpKey, tmpSize, true); in BnOperationOfPubKeyConversion() 326 if (memcpy_s(keyOut->data, keyOut->size, tmpKey, tmpSize) != EOK) { in BnOperationOfPubKeyConversion() 329 keyOut->size = tmpSize; in BnOperationOfPubKeyConversion() 340 if (keyOut->size < tmpSize) { in ConvertPubkeyX25519FromED25519() 383 if (keyIn->size < totalSize || keyOut->size < tmpSize) { in ConvertPrivX25519FromED25519() 395 uint8_t *input = keyIn->data + tmpSize; in ConvertPrivX25519FromED25519() 413 keyOut->size = tmpSize; in ConvertPrivX25519FromED25519() 415 keyOut->data[tmpSize - 1] &= 127; // 127: RFC 8032 in ConvertPrivX25519FromED25519() [all …]
|
/ohos5.0/base/security/code_signature/utils/src/ |
H A D | pkcs7_data.cpp | 75 long tmpSize = BIO_get_mem_data(bio, &tmp); in GetPKCS7Data() local 76 if ((tmpSize < 0) || (tmpSize > UINT32_MAX)) { in GetPKCS7Data() 79 if (!pkcs7Data.CopyFrom(tmp, static_cast<uint32_t>(tmpSize))) { in GetPKCS7Data()
|
/ohos5.0/foundation/communication/netmanager_base/frameworks/native/netconnclient/src/ |
H A D | net_interface_config.cpp | 87 int32_t tmpSize = 0; in Unmarshalling() local 88 if (!parcel.ReadInt32(tmpSize)) { in Unmarshalling() 91 size_t size = static_cast<size_t>(tmpSize); in Unmarshalling()
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/ |
H A D | queue.h | 69 size_t tmpSize = FillpLfRingCalMemSize(size); in FillpQueueCalMemSize() local 70 size_t memSize = tmpSize + sizeof(FillpQueue); in FillpQueueCalMemSize() 72 if ((tmpSize == 0) || (memSize < sizeof(FillpQueue))) { in FillpQueueCalMemSize()
|
/ohos5.0/base/security/code_signature/test/unittest/ |
H A D | sign_and_enforce_test.cpp | 105 long tmpSize = BIO_get_mem_data(bio, &tmp); in DumpPKCS7Data() local 106 if ((tmpSize < 0) || (tmpSize > UINT32_MAX)) { in DumpPKCS7Data() 109 if (!pkcs7Data.CopyFrom(tmp, static_cast<uint32_t>(tmpSize))) { in DumpPKCS7Data()
|
/ohos5.0/foundation/communication/wifi/wifi/base/cRPC/src/ |
H A D | net.c | 92 int tmpSize = ret + 1; in MyWrite() local 93 char *szTmp = (char *)calloc(tmpSize, sizeof(char)); in MyWrite() 95 if (strncpy_s(szTmp, tmpSize, buf + pos, ret) == EOK) { in MyWrite()
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/os_dependency/ipc/src/ |
H A D | hks_client_ipc_serialization.c | 414 uint32_t tmpSize; in EncodeCertChain() local 415 int32_t ret = CheckAndCalculateSize(inBlob->size, beginLen + endLen, &tmpSize); in EncodeCertChain() 418 struct HksBlob tmpBlob = { tmpSize, NULL }; in EncodeCertChain() 419 tmpBlob.data = (uint8_t *)HksMalloc(tmpSize); in EncodeCertChain() 423 if (memcpy_s(tmpBlob.data, tmpSize, begin, beginLen) != EOK) { in EncodeCertChain() 429 if (memcpy_s(tmpBlob.data + tmpSize - endLen, endLen, end, endLen) != EOK) { in EncodeCertChain() 435 …ret = Base64Encode(inBlob->data, inBlob->size, tmpBlob.data + beginLen, tmpSize - beginLen - endLe… in EncodeCertChain()
|
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_scan_proxy_lite.cpp | 37 int tmpSize = 0; in ParseScanInfos() local 38 (void)ReadInt32(reply, &tmpSize); in ParseScanInfos() 39 if (tmpSize > MAX_SIZE) { in ParseScanInfos() 40 WIFI_LOGE("Scan info size exceeds maximum allowed size: %{public}d", tmpSize); in ParseScanInfos() 45 for (int i = 0; i < tmpSize; ++i) { in ParseScanInfos()
|
/ohos5.0/foundation/multimedia/camera_lite/services/impl/src/ |
H A D | camera_service.cpp | 80 CameraPicSize tmpSize = {.width = (uint32_t)streamCap[pos].u.formatEnum.width, in GetCameraAbility() local 82 range.emplace_back(tmpSize); in GetCameraAbility()
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_generate_helper.cpp | 454 Size tmpSize; in UpdateStreamReadThumbDbStatus() local 455 if (!ThumbnailUtils::GetLocalThumbSize(data, thumbType, tmpSize)) { in UpdateStreamReadThumbDbStatus() 460 ThumbnailUtils::SetThumbnailSizeValue(values, tmpSize, PhotoColumn::PHOTO_LCD_SIZE); in UpdateStreamReadThumbDbStatus() 465 ThumbnailUtils::SetThumbnailSizeValue(values, tmpSize, PhotoColumn::PHOTO_THUMB_SIZE); in UpdateStreamReadThumbDbStatus()
|
H A D | thumbnail_utils.cpp | 2347 std::string tmpSize = std::to_string(size.width) + ":" + std::to_string(size.height); in SetThumbnailSizeValue() local 2348 values.PutString(column, tmpSize); in SetThumbnailSizeValue()
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/common/src/ |
H A D | pixel_map.cpp | 1533 uint64_t tmpSize = 0; in ReadPixels() local 1535 while (tmpSize < bufferSize) { in ReadPixels() 1536 if (tmpSize + MAX_READ_COUNT > bufferSize) { in ReadPixels() 1537 readSize = (int)(bufferSize - tmpSize); in ReadPixels() 1539 errno_t ret = memcpy_s(dst + tmpSize, readSize, data_ + tmpSize, readSize); in ReadPixels() 1544 tmpSize += static_cast<uint64_t>(readSize); in ReadPixels() 1852 uint64_t tmpSize = 0; in WritePixels() local 1854 while (tmpSize < bufferSize) { in WritePixels() 1856 readSize = (int)(bufferSize - tmpSize); in WritePixels() 1858 errno_t ret = memcpy_s(data_ + tmpSize, readSize, source + tmpSize, readSize); in WritePixels() [all …]
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
H A D | hks_mbedtls_aes.c | 1273 … uint32_t tmpSize = (message->size - point) >= blockSize ? blockSize : (message->size - point); in AesEcbNoPaddingData() local 1274 if (memcpy_s(tmpMessage, blockSize, message->data + point, tmpSize)) { in AesEcbNoPaddingData() 1280 … ret = mbedtls_cipher_update(ecbNoPadingctx, tmpMessage, tmpSize, cipherText->data + point, &olen); in AesEcbNoPaddingData()
|