/bootable/recovery/ |
D | asn1_decoder.cpp | 25 size_t length; member 41 asn1_context_t* asn1_context_new(uint8_t* buffer, size_t length) { in asn1_context_new() argument 47 ctx->length = length; in asn1_context_new() 56 if (ctx->length <= 0) { in peek_byte() 63 if (ctx->length <= 0) { in get_byte() 68 ctx->length--; in get_byte() 73 if (ctx->length < num_skip) { in skip_bytes() 77 ctx->length -= num_skip; in skip_bytes() 94 size_t length = 0; in decode_length() local 100 length <<= 8; in decode_length() [all …]
|
D | roots.cpp | 66 v->blk_device, v->length); in load_volume_table() 228 ssize_t length = 0; in format_volume() local 229 if (v->length != 0) { in format_volume() 230 length = v->length; in format_volume() 232 length = -CRYPT_FOOTER_OFFSET; in format_volume() 236 result = make_ext4fs(v->blk_device, length, volume, sehandle); in format_volume() 238 if (v->key_loc != NULL && strcmp(v->key_loc, "footer") == 0 && length < 0) { in format_volume() 239 …E("format_volume: crypt footer + negative length (%zd) not supported on %s\n", length, v->fs_type); in format_volume() 242 if (length < 0) { in format_volume() 243 … LOGE("format_volume: negative length (%zd) not supported on %s\n", length, v->fs_type); in format_volume() [all …]
|
D | asn1_decoder.h | 25 asn1_context_t* asn1_context_new(uint8_t* buffer, size_t length); 33 bool asn1_oid_get(asn1_context_t* ctx, uint8_t** oid, size_t* length); 34 bool asn1_octet_string_get(asn1_context_t* ctx, uint8_t** octet_string, size_t* length);
|
D | verifier.cpp | 115 int verify_file(unsigned char* addr, size_t length, in verify_file() argument 130 if (length < FOOTER_SIZE) { in verify_file() 135 unsigned char* footer = addr + length - FOOTER_SIZE; in verify_file() 158 if (length < eocd_size) { in verify_file() 167 size_t signed_len = length - eocd_size + EOCD_HEADER_SIZE - 2; in verify_file() 169 unsigned char* eocd = addr + length - eocd_size; in verify_file()
|
D | verifier.h | 45 int verify_file(unsigned char* addr, size_t length,
|
D | install.cpp | 235 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()
|
D | verifier_test.cpp | 245 int result = verify_file(map.addr, map.length, certs, num_keys); in main()
|
/bootable/recovery/tests/ |
D | asn1_decoder_test.cpp | 43 size_t length; in TEST_F() local 44 EXPECT_FALSE(asn1_oid_get(ctx, &junk, &length)); in TEST_F() 45 EXPECT_FALSE(asn1_octet_string_get(ctx, &junk, &length)); in TEST_F() 72 size_t length; in TEST_F() local 73 EXPECT_FALSE(asn1_oid_get(ptr, &oid, &length)); in TEST_F() 85 size_t length; in TEST_F() local 86 ASSERT_TRUE(asn1_oid_get(ptr, &oid, &length)); in TEST_F() 87 EXPECT_EQ(1U, length); in TEST_F() 107 size_t length; in TEST_F() local 108 ASSERT_TRUE(asn1_oid_get(ctx, &oid, &length)); in TEST_F() [all …]
|
/bootable/recovery/minzip/ |
D | SysUtil.c | 25 size_t length; in getFileStartAndLength() local 41 length = end - start; in getFileStartAndLength() 42 if (length == 0) { in getFileStartAndLength() 48 *length_ = length; in getFileStartAndLength() 63 size_t length; in sysMapFD() local 68 if (getFileStartAndLength(fd, &start, &length) < 0) in sysMapFD() 71 memPtr = mmap(NULL, length, PROT_READ, MAP_PRIVATE, fd, start); in sysMapFD() 73 LOGW("mmap(%d, R, PRIVATE, %d, %d) failed: %s\n", (int) length, in sysMapFD() 79 pMap->length = length; in sysMapFD() 83 pMap->ranges[0].length = length; in sysMapFD() [all …]
|
D | Bits.h | 223 unsigned int length = read4BE(ppSrc); in skipUtf8String() local 225 (*ppSrc) += length; in skipUtf8String() 235 unsigned int length = read4BE(ppSrc); in readUtf8String() local 236 size_t copyLen = (length < bufLen) ? length : bufLen-1; in readUtf8String() 241 (*ppSrc) += length; in readUtf8String() 242 return length; in readUtf8String() 253 unsigned int length = read4BE(ppSrc); in readNewUtf8String() local 256 buf = (char*) malloc(length+1); in readNewUtf8String() 258 memcpy(buf, *ppSrc, length); in readNewUtf8String() 259 buf[length] = '\0'; in readNewUtf8String() [all …]
|
D | SysUtil.h | 18 size_t length; member 26 size_t length; /* length of data */ member
|
D | Zip.h | 53 size_t length; member 71 int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive);
|
D | Zip.c | 212 ptr = pArchive->addr + pArchive->length - ENDHDR; in parseZipArchive() 233 if (numEntries == 0 || cdOffset >= pArchive->length) { in parseZipArchive() 235 numEntries, cdOffset, pArchive->length); 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() 359 (uintptr_t)pArchive->addr + pArchive->length) { in parseZipArchive() 373 if ((size_t)pEntry->offset + pEntry->compLen > pArchive->length) { in parseZipArchive() 426 int mzOpenZipArchive(unsigned char* addr, size_t length, ZipArchive* pArchive) in mzOpenZipArchive() argument 430 if (length < ENDHDR) { in mzOpenZipArchive() 432 LOGV("File '%s' too small to be zip (%zd)\n", fileName, map.length); in mzOpenZipArchive() [all …]
|
/bootable/recovery/minui/ |
D | graphics_fbdev.cpp | 119 vi.red.offset, vi.red.length, in fbdev_init() 120 vi.green.offset, vi.green.length, in fbdev_init() 121 vi.blue.offset, vi.blue.length); in fbdev_init()
|
/bootable/recovery/updater/ |
D | updater.c | 79 err = mzOpenZipArchive(map.addr, map.length, &za); in main() 134 updater_info.package_zip_len = map.length; in main()
|
/bootable/recovery/edify/ |
D | expr.c | 77 int length = 0; in ConcatFn() local 83 length += strlen(strings[i]); in ConcatFn() 86 result = malloc(length+1); in ConcatFn()
|
/bootable/recovery/mtdutils/ |
D | mtdutils.c | 432 erase_info.length = size; in write_block() 541 erase_info.length = ctx->partition->erase_size; in mtd_erase_blocks()
|