Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 29) sorted by relevance

12

/system/extras/verity/
DBootSignature.java155 public byte[] generateSignableImage(byte[] image) throws IOException { in generateSignableImage() argument
157 byte[] signable = Arrays.copyOf(image, image.length + attrs.length); in generateSignableImage()
159 signable[i+image.length] = attrs[i]; in generateSignableImage()
164 public byte[] sign(byte[] image, PrivateKey key) throws Exception { in sign() argument
165 byte[] signable = generateSignableImage(image); in sign()
169 public boolean verify(byte[] image) throws Exception { in verify() argument
170 if (length.getValue().intValue() != image.length) { in verify()
174 byte[] signable = generateSignableImage(image); in verify()
195 ByteBuffer image = ByteBuffer.wrap(data); in getSignableImageSize() local
196 image.order(ByteOrder.LITTLE_ENDIAN); in getSignableImageSize()
[all …]
DVerityVerifier.java47 private File image; field in VerityVerifier
143 image = File.createTempFile("system", ".raw"); in openImage()
144 image.deleteOnExit(); in openImage()
147 " " + image.getAbsoluteFile()); in openImage()
266 try (RandomAccessFile img = new RandomAccessFile(image, "r")) { in readVerityData()
363 try (RandomAccessFile img = new RandomAccessFile(image, "r")) { in verifyData()
DUtils.java285 byte[] image = new byte[(int)length]; in read()
288 offset += fis.read(image, (int)offset, (int)(length - offset)); in read()
291 return image; in read()
/system/extras/verity/fec/tests/
Dfec.py26 def corrupt(image, offset, length): argument
28 f = os.open(image, os.O_WRONLY)
33 def corruptmax(image, roots): argument
34 size = os.stat(image).st_size
42 corrupt(image, offset, max_errors)
44 def encode(image, fec, roots): argument
45 if subprocess.call([ "fec", "--roots= " + str(roots), image, fec ]) != 0:
48 def decode(image, fec, output): argument
49 return subprocess.call([ "fec", "--decode", image, fec, output ])
54 def simg2img(image, output): argument
[all …]
/system/extras/verity/fec/
Dimage.h38 struct image { struct
74 image *ctx; argument
82 extern bool image_load(const std::vector<std::string>& filename, image *ctx,
84 extern bool image_save(const std::string& filename, image *ctx);
86 extern bool image_ecc_new(const std::string& filename, image *ctx);
87 extern bool image_ecc_load(const std::string& filename, image *ctx);
88 extern bool image_ecc_save(image *ctx);
90 extern bool image_process(image_proc_func f, image *ctx);
92 extern void image_init(image *ctx);
93 extern void image_free(image *ctx);
[all …]
Dimage.cpp49 void image_init(image *ctx) in image_init()
54 static void mmap_image_free(image *ctx) in mmap_image_free()
71 static void file_image_free(image *ctx) in file_image_free()
84 void image_free(image *ctx) in image_free()
118 static void calculate_rounds(uint64_t size, image *ctx) in calculate_rounds()
132 static void mmap_image_load(const std::vector<int>& fds, image *ctx, in mmap_image_load()
192 image *ctx = (image *)priv; in process_chunk()
204 static void file_image_load(const std::vector<int>& fds, image *ctx) in file_image_load()
279 bool image_load(const std::vector<std::string>& filenames, image *ctx, in image_load()
312 bool image_save(const std::string& filename, image *ctx) in image_save()
[all …]
DAndroid.mk9 LOCAL_SRC_FILES := main.cpp image.cpp
29 LOCAL_SRC_FILES := main.cpp image.cpp
Dmain.cpp45 struct image *fcx = ctx->ctx; in encode_rs()
62 struct image *fcx = ctx->ctx; in decode_rs()
136 static int print_size(image& ctx) in print_size()
172 static int encode(image& ctx, const std::vector<std::string>& inp_filenames, in encode()
214 static int decode(image& ctx, const std::vector<std::string>& inp_filenames, in decode()
271 image ctx; in main()
/system/update_engine/scripts/
Dbrillo_update_payload263 local image="$1"
267 local magic=$(head --bytes=4 "${image}" | hexdump -e '1/1 "%.2x"')
277 if cgpt show -q -n "${image}" >/dev/null; then
283 die "Couldn't detect the image format of ${image}"
290 local image="$1"
300 --image "${image}" \
339 if unzip -p "${image}" "META/ab_partitions.txt" >"${ab_partitions_list}"; then
/system/core/healthd/
DAndroid.mk62 define _add-charger-image
77 $(eval $(call _add-charger-image,$(_img))))
85 _add-charger-image :=
/system/update_engine/update_payload_key/
DREADME2 baked into the system image as part of update_engine install.
/system/update_engine/
DAndroid.mk731 define ue-unittest-sample-image
745 $(call ue-unittest-sample-image,disk_ext2_1k.img)
746 $(call ue-unittest-sample-image,disk_ext2_4k.img)
747 $(call ue-unittest-sample-image,disk_ext2_4k_empty.img)
748 $(call ue-unittest-sample-image,disk_ext2_unittest.img)
Dupdate_metadata.proto130 // Describe an image we are based on in a human friendly way.
144 // special image types such as nplusone images.
/system/connectivity/shill/
DTESTING90 - build a test image, suitable for a VM:
105 - if you've modified the source after building the image, update shill on
106 the image, and then restart shill:
/system/sepolicy/
Ddex2oat.te38 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
Ddomain_deprecated.te72 # World readable asec image contents
/system/ca-certificates/google/files/
D5e4e69e7.051 … 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
D524d9b43.069 … 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
Dfacacbc6.069 … 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
/system/ca-certificates/files/
D5e4e69e7.051 … 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
D524d9b43.069 … 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
Dfacacbc6.069 … 0_.].[0Y0W0U..image/gif0!0.0...+..............k...j.H.,{..0%.#http://logo.verisign.com/vslogo.gif
/system/extras/tests/net_test/
DREADME31 machine" whose root filesystem is the supplied Debian disk image. The machine
/system/core/fastboot/
Dfastboot_protocol.txt128 "flash:%s" Write the previously downloaded image to the
320 incomplete. Large data such as downloading an image may require many
/system/media/audio_utils/
DDoxyfile.orig832 # \image command).
1348 # sheet generated by doxygen has an example that shows how to put an image at
2197 # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images

12