Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 9 of 9) sorted by relevance

/bootable/recovery/minzip/
DSysUtil.c78 pMap->addr = memPtr; in sysMapFD()
82 pMap->ranges[0].addr = memPtr; in sysMapFD()
127 pMap->ranges[range_count-1].addr = reserve; in sysMapBlockFile()
144 …void* addr = mmap64(next, (end-start)*blksize, PROT_READ, MAP_PRIVATE | MAP_FIXED, fd, ((off64_t)s… in sysMapBlockFile() local
145 if (addr == MAP_FAILED) { in sysMapBlockFile()
149 pMap->ranges[i].addr = addr; in sysMapBlockFile()
155 pMap->addr = reserve; in sysMapBlockFile()
207 if (munmap(pMap->ranges[i].addr, pMap->ranges[i].length) < 0) { in sysReleaseMap()
209 pMap->ranges[i].addr, (int)pMap->ranges[i].length, strerror(errno)); in sysReleaseMap()
DSysUtil.h17 void* addr; member
25 unsigned char* addr; /* start of data */ member
DZip.c199 val = get4LE(pArchive->addr); in parseZipArchive()
212 ptr = pArchive->addr + pArchive->length - ENDHDR; in parseZipArchive()
214 while (ptr >= (const unsigned char*) pArchive->addr) { in parseZipArchive()
219 if (ptr < (const unsigned char*) pArchive->addr) { in parseZipArchive()
248 ptr = pArchive->addr + cdOffset; in parseZipArchive()
255 if (ptr + CENHDR > (const unsigned char*)pArchive->addr + pArchive->length) { in parseZipArchive()
269 if (fileName + fileNameLen > (const char*)pArchive->addr + pArchive->length) { in parseZipArchive()
353 if (!safe_add((uintptr_t *)&localHdr, (uintptr_t)pArchive->addr, in parseZipArchive()
359 (uintptr_t)pArchive->addr + pArchive->length) { in parseZipArchive()
426 int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive) in mzOpenZipArchive() argument
[all …]
DZip.h52 unsigned char* addr; member
71 int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive);
/bootable/recovery/
Dverifier.h45 int verify_file(unsigned char* addr, size_t length,
Dverifier.cpp115 int verify_file(unsigned char* addr, size_t length, in verify_file() argument
135 unsigned char* footer = addr + length - FOOTER_SIZE; in verify_file()
169 unsigned char* eocd = addr + length - eocd_size; in verify_file()
214 if (need_sha1) SHA_update(&sha1_ctx, addr + so_far, size); in verify_file()
215 if (need_sha256) SHA256_update(&sha256_ctx, addr + so_far, size); in verify_file()
Dinstall.cpp235 err = verify_file(map.addr, map.length, loadedKeys, numKeys); in really_install_package()
247 err = mzOpenZipArchive(map.addr, map.length, &zip); in really_install_package()
Dverifier_test.cpp245 int result = verify_file(map.addr, map.length, certs, num_keys); in main()
/bootable/recovery/updater/
Dupdater.c79 err = mzOpenZipArchive(map.addr, map.length, &za); in main()
133 updater_info.package_zip_addr = map.addr; in main()