Searched refs:nameSize (Results 1 – 8 of 8) sorted by relevance
/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
D | cert_manager_file.c | 126 uint32_t nameSize = strlen(dire.fileName) + 1; /* include '\0' at end */ in GetFileNames() local 127 fNames[i].data = (uint8_t *)CMMalloc(nameSize); /* uniformly free memory by caller */ in GetFileNames() 134 fNames[i].size = nameSize; in GetFileNames() 135 (void)memset_s(fNames[i].data, nameSize, 0, nameSize); in GetFileNames() 136 if (sprintf_s((char *)fNames[i].data, nameSize, "%s", dire.fileName) < 0) { in GetFileNames()
|
D | cert_manager_query.c | 216 uint32_t nameSize = strlen(fName) + 1; in MallocCertNameAndPath() local 217 certFile->fileName.data = (uint8_t *)CMMalloc(nameSize); in MallocCertNameAndPath() 222 certFile->fileName.size = nameSize; in MallocCertNameAndPath() 223 (void)memset_s(certFile->fileName.data, nameSize, 0, nameSize); in MallocCertNameAndPath()
|
/base/update/sys_installer/services/module_update/util/src/ |
D | module_zip_helper.cpp | 39 uint16_t nameSize = 0; member 54 uint16_t nameSize = 0; member 186 uint16_t nameSize = ReadLE16(localHeaderBuf + offsetof(LocalFileHeader, nameSize)); in GetFileEntryOffset() local 188 offset = localHeaderOffset + sizeof(LocalFileHeader) + nameSize + extraSize; in GetFileEntryOffset()
|
/base/update/updater/services/package/pkg_package/ |
D | pkg_zipfile.cpp | 390 centralDir->nameSize = realLen; in EncodeCentralDirEntry() 428 header->nameSize = nameLen; in EncodeLocalFileHeader() 461 size_t currLen, uint16_t nameSize, uint16_t extraSize) in DoDecodeCentralDirEntry() argument 476 uint8_t* extraData = buffer.buffer + nameSize + sizeof(CentralDirEntry); in DoDecodeCentralDirEntry() 523 uint16_t nameSize = ReadLE16(buffer.buffer + offsetof(CentralDirEntry, nameSize)); in DecodeCentralDirEntry() local 526 size_t currLen = sizeof(CentralDirEntry) + nameSize + extraSize + commentSize; in DecodeCentralDirEntry() 531 size_t fileNameLength = nameSize; in DecodeCentralDirEntry() 532 if (nameSize >= MAX_FILE_NAME) { in DecodeCentralDirEntry() 533 PKG_LOGE("file name size too longer %d", nameSize); in DecodeCentralDirEntry() 542 return DoDecodeCentralDirEntry(buffer, decodeLen, currLen, nameSize, extraSize); in DecodeCentralDirEntry() [all …]
|
D | pkg_zipfile.h | 46 uint16_t nameSize = 0; member 80 uint16_t nameSize = 0; member 152 size_t currLen, uint16_t nameSize, uint16_t extraSize);
|
/base/security/crypto_framework/plugin/openssl_plugin/key/sym_key_generator/src/ |
D | sym_key_openssl.c | 214 int32_t nameSize = strlen(nameType); in GetAlgoName() local 224 if (strcpy_s(algoName + nameSize, MAX_KEY_STR_SIZE - nameSize, keySizeChar) != EOK) { in GetAlgoName()
|
/base/account/os_account/interfaces/kits/napi/osaccount/src/ |
D | napi_os_account_common.cpp | 1633 size_t nameSize = asyncContext->name.size(); in ParseParaToSubscriber() local 1634 if (nameSize == 0 || nameSize > MAX_SUBSCRIBER_NAME_LEN) { in ParseParaToSubscriber() 1635 ACCOUNT_LOGE("Subscriber name size %{public}zu is invalid.", nameSize); in ParseParaToSubscriber() 1690 size_t nameSize = asyncContext->name.size(); in ParseParaToUnsubscriber() local 1691 if (nameSize == 0 || nameSize > MAX_SUBSCRIBER_NAME_LEN) { in ParseParaToUnsubscriber() 1692 ACCOUNT_LOGE("Subscriber name size %{public}zu is invalid.", nameSize); in ParseParaToUnsubscriber()
|
/base/update/updater/test/unittest/package/ |
D | pkg_package_unittest.cpp | 145 centralDir->nameSize = name.length(); in TestBigZipEntry()
|