Home
last modified time | relevance | path

Searched refs:magic (Results 1 – 20 of 20) sorted by relevance

/base/startup/init/services/begetctl/
Dmisc_daemon.cpp97 uint32_t magic = 0; in WriteLogo() local
98 if (read(fd, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogo()
103 if (magic == LOGO_MAGIC) { in WriteLogo()
109 magic = LOGO_MAGIC; in WriteLogo()
111 if (write(fd, &magic, sizeof(magic)) != sizeof(magic)) { in WriteLogo()
170 uint32_t magic = 0; in WriteLogoToMisc() local
172 if (read(fd1, &magic, sizeof(uint32_t)) != sizeof(uint32_t)) { in WriteLogoToMisc()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_signing_block_utils_test.cpp73 long long magic = HapSigningBlockUtils::HAP_SIG_BLOCK_MAGIC_LOW_OLD; in CreatTestZipFile() local
74 hapFile.write(reinterpret_cast<char*>(&magic), sizeof(magic)); in CreatTestZipFile()
75 magic = HapSigningBlockUtils::HAP_SIG_BLOCK_MAGIC_HIGH_OLD; in CreatTestZipFile()
76 hapFile.write(reinterpret_cast<char*>(&magic), sizeof(magic)); in CreatTestZipFile()
84 hapFile.write(reinterpret_cast<char*>(&magic), sizeof(magic)); in CreatTestZipFile()
97 sizeof(centralDirOffset) + sizeof(magic) + sizeof(eocdCommentLen); in CreatTestZipFile()
/base/startup/hvb/libhvb/include/
Dhvb_footer.h34 uint8_t magic[HVB_FOOTER_MAGIC_LEN]; member
Dhvb_rvt.h52 uint8_t magic[RVT_MAGIC_LEN]; member
Dhvb_cert.h73 uint8_t magic[HVB_MAGIC_LEN]; member
/base/startup/hvb/libhvb/src/footer/
Dhvb_footer.c32 if (hvb_memcmp(footer->magic, HVB_FOOTER_MAGIC, sizeof(footer->magic)) != 0) { in _footer_parser()
/base/security/dlp_permission_service/test/fuzztest/dlp_permission/parsedlpheader_fuzzer/
Dparsedlpheader_fuzzer.cpp62 .magic = DLP_FILE_MAGIC, in FuzzTest()
/base/security/appverify/interfaces/innerkits/appverify_lite/include/
Dapp_centraldirectory.h61 int32_t magic; member
/base/security/code_signature/utils/src/
Dfsverity_utils_helper.cpp59 if (memcpy_s(ret->magic, FSVERITY_DIGEST_MAGIC_LENGTH, FSVERITY_DIGEST_MAGIC, in FormatDigest()
/base/update/updater/services/package/pkg_package/
Dpkg_gzipfile.h26 uint16_t magic = 0; member
Dpkg_gzipfile.cpp68 header->magic = GZIP_MAGIC; in GetUpGradeCompInfo()
376 if (header->magic != GZIP_MAGIC) { in LoadPackage()
Dpkg_zipfile.cpp202 uint32_t magic = 0; in LoadPackage() local
213 magic = ReadLE32(buffer.buffer); in LoadPackage()
214 if (magic != END_CENTRAL_SIGNATURE) { // 按签名处理 in LoadPackage()
/base/update/sys_installer/services/module_update/util/src/
Dmodule_file.cpp59 const char *magic; member
72 if (memcmp(buf, fs.magic, fs.len) == 0) { in RetrieveFsType()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/
Ddlp_file_test.cpp505 .magic = DLP_FILE_MAGIC,
521 header.magic = 0;
523 header.magic = DLP_FILE_MAGIC;
601 .magic = DLP_FILE_MAGIC,
628 .magic = DLP_FILE_MAGIC,
655 .magic = DLP_FILE_MAGIC,
688 .magic = DLP_FILE_MAGIC,
723 .magic = DLP_FILE_MAGIC,
758 .magic = DLP_FILE_MAGIC,
Ddlp_file_manager_test.cpp204 .magic = DLP_FILE_MAGIC,
241 .magic = DLP_FILE_MAGIC,
283 .magic = DLP_FILE_MAGIC,
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/
Ddlp_file.h50 uint32_t magic; member
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/
Ddlp_file_kits.cpp109 if (head.magic != DLP_FILE_MAGIC || head.certSize == 0 || head.certSize > DLP_MAX_CERT_SIZE || in IsValidDlpHeader()
Ddlp_file.cpp43 head_.magic = DLP_FILE_MAGIC; in DlpFile()
306 if (head.magic != DLP_FILE_MAGIC || head.certSize == 0 || head.certSize > DLP_MAX_CERT_SIZE || in IsValidDlpHeader()
/base/startup/hvb/tools/
Dhvbtool.py79 (self.magic, self.certoffset, self.certsize, self.imagesize,
81 if self.magic != self.FOOTERMAGIC:
89 msg += "\tMaigc: {}\n".format((self.magic).decode())
328 (magic, major_version, minor_version, file_hdr_sz,
331 if magic != self.SIMAGE_MAGIC:
1022 magic, verity_num = struct.unpack('4sI', header)
1025 if magic != self.RVT_MAGIC:
/base/update/updater/services/diffpatch/diff/
Dimage_diff.cpp503 int32_t magic = (method_ == PKG_COMPRESS_METHOD_LZ4_BLOCK) ? LZ4B_MAGIC : LZ4S_MAGIC; in WriteHeader() local
505 WriteToFile<int32_t>(patchFile, magic, sizeof(int32_t)); in WriteHeader()