/base/security/huks/services/huks_standard/huks_service/main/hks_storage/src/ |
H A D | hks_storage_lite.c | 364 uint8_t *tmpBuf = storageBuf.data + offset; in GetKeyOffsetByKeyAlias() local 365 struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)tmpBuf; in GetKeyOffsetByKeyAlias() 372 if (HksMemCmp(keyAlias->data, tmpBuf + sizeof(*keyInfo), keyAlias->size) == 0) { in GetKeyOffsetByKeyAlias() 692 uint8_t *tmpBuf = g_storageImageBuffer.data + offset; in HksStoreGetKeyBlob() 693 struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)tmpBuf; in HksStoreGetKeyBlob() 700 if (memcpy_s(keyBlob->data, keyBlob->size, tmpBuf, keyInfo->keyInfoLen) != EOK) { in HksStoreGetKeyBlob() 829 uint8_t *tmpBuf = storageBuf.data + offset; /* storageBuf.size has been checked */ in HksStoreGetKeyInfoList() local 830 struct HksStoreKeyInfo *keyInfo = (struct HksStoreKeyInfo *)tmpBuf; in HksStoreGetKeyInfoList() 837 struct HksBlob keyInfoBlob = { keyInfo->keyInfoLen, tmpBuf }; in HksStoreGetKeyInfoList()
|
/base/security/huks/utils/crypto_adapter/ |
H A D | hks_client_service_adapter_lite.c | 47 uint8_t *tmpBuf = (uint8_t *)HksMalloc(MAX_KEY_SIZE);
in PkCtxToX509() local 48 HKS_IF_NULL_RETURN(tmpBuf, HKS_ERROR_MALLOC_FAIL)
in PkCtxToX509() 52 int32_t x509Size = mbedtls_pk_write_pubkey_der(ctx, tmpBuf, MAX_KEY_SIZE);
in PkCtxToX509() 67 if (memcpy_s(x509KeyData, x509Size, tmpBuf + MAX_KEY_SIZE - x509Size, x509Size) != EOK) {
in PkCtxToX509() 78 HKS_FREE(tmpBuf);
in PkCtxToX509()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/ |
H A D | hap_parser.cpp | 129 void *tmpBuf = nullptr; in ReadIndexFromFile() local 132 int32_t ret = ReadFileFromZip(zipFile, "config.json", &tmpBuf, tmpLen, tmp); in ReadIndexFromFile() 140 std::string mName = GetModuleName(static_cast<char *>(tmpBuf)); in ReadIndexFromFile() 143 free(tmpBuf); in ReadIndexFromFile() 146 free(tmpBuf); in ReadIndexFromFile()
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | hap_resource.cpp | 164 bool GetIndexData(const char *path, std::unique_ptr<uint8_t[]> &tmpBuf, size_t &len) in GetIndexData() argument 179 bool ret = extractor->ExtractToBufByName(indexFilePath, tmpBuf, len); in GetIndexData() 191 std::unique_ptr<uint8_t[]> tmpBuf; in LoadFromHap() local 193 bool ret = GetIndexData(path, tmpBuf, tmpLen); in LoadFromHap() 204 reinterpret_cast<char *>(tmpBuf.get()), tmpLen, *resDesc, defaultConfig, selectedTypes); in LoadFromHap()
|
H A D | raw_file_manager.cpp | 185 std::unique_ptr<uint8_t[]> tmpBuf;
in LoadRawFileFromHap() local 186 RState state = mgr->resManager->GetRawFileFromHap(fileName, len, tmpBuf);
in LoadRawFileFromHap() 192 result->buffer = tmpBuf.release();
in LoadRawFileFromHap()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
H A D | dlp_file.cpp | 637 uint8_t *tmpBuf = new (std::nothrow)uint8_t[head_.contactAccountSize]; in ParseDlpHeaderInRaw() local 638 if (tmpBuf == nullptr) { in ParseDlpHeaderInRaw() 639 DLP_LOG_WARN(LABEL, "alloc tmpBuf failed."); in ParseDlpHeaderInRaw() 643 if (read(dlpFd_, tmpBuf, head_.contactAccountSize) != (ssize_t)head_.contactAccountSize) { in ParseDlpHeaderInRaw() 644 delete[] tmpBuf; in ParseDlpHeaderInRaw() 649 contactAccount_ = std::string(tmpBuf, tmpBuf + head_.contactAccountSize); in ParseDlpHeaderInRaw() 650 delete[] tmpBuf; in ParseDlpHeaderInRaw() 653 tmpBuf = new (std::nothrow)uint8_t[head_.offlineCertSize]; in ParseDlpHeaderInRaw() 654 if (tmpBuf in ParseDlpHeaderInRaw() [all...] |
/base/hiviewdfx/hilog_lite/frameworks/featured/ |
H A D | hiview_log.c | 1333 char tmpBuf[SECUREC_MB_LEN + 1]; in HiLogSecOutputS() local 1335 int retVal = wctomb(tmpBuf, *p++); in HiLogSecOutputS() 1341 SECUREC_WRITE_STRING(tmpBuf, retVal, stream, &charsOut); in HiLogSecOutputS()
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
H A D | hap_parser.cpp | 162 std::unique_ptr<uint8_t[]> tmpBuf; in ParseModuleNameFromHap() local 165 ret = HapParser::ReadFileFromZip(uf, "config.json", tmpBuf, tmpLen); in ParseModuleNameFromHap() 171 std::string mName = GetModuleName(reinterpret_cast<char *>(tmpBuf.get()), tmpLen); in ParseModuleNameFromHap()
|