Home
last modified time | relevance | path

Searched refs:image (Results 1 – 25 of 26) 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 …]
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
72 image *ctx; argument
80 extern bool image_load(const std::vector<std::string>& filename, image *ctx);
81 extern bool image_save(const std::string& filename, image *ctx);
83 extern bool image_ecc_new(const std::string& filename, image *ctx);
84 extern bool image_ecc_load(const std::string& filename, image *ctx);
85 extern bool image_ecc_save(image *ctx);
87 extern bool image_process(image_proc_func f, image *ctx);
89 extern void image_init(image *ctx);
90 extern void image_free(image *ctx);
[all …]
Dimage.cpp47 void image_init(image *ctx) in image_init()
52 void image_free(image *ctx) in image_free()
67 static void calculate_rounds(uint64_t size, image *ctx) in calculate_rounds()
83 image *ctx = (image *)priv; in process_chunk()
94 static void file_image_load(const std::vector<int>& fds, image *ctx) in file_image_load()
145 bool image_load(const std::vector<std::string>& filenames, image *ctx) in image_load()
173 bool image_save(const std::string& filename, image *ctx) in image_save()
192 bool image_ecc_new(const std::string& filename, image *ctx) in image_ecc_new()
212 bool image_ecc_load(const std::string& filename, image *ctx) in image_ecc_load()
292 bool image_ecc_save(image *ctx) in image_ecc_save()
[all …]
Dmain.cpp45 struct image *fcx = ctx->ctx; in encode_rs()
62 struct image *fcx = ctx->ctx; in decode_rs()
137 static int print_size(image& ctx) in print_size()
173 static int encode(image& ctx, const std::vector<std::string>& inp_filenames, in encode()
215 static int decode(image& ctx, const std::vector<std::string>& inp_filenames, in decode()
276 image ctx; in main()
DAndroid.mk9 LOCAL_SRC_FILES := main.cpp image.cpp
/system/update_engine/scripts/
Dbrillo_update_payload289 local image="$1"
293 local magic=$(head --bytes=4 "${image}" | hexdump -e '1/1 "%.2x"')
303 if cgpt show -q -n "${image}" >/dev/null; then
309 die "Couldn't detect the image format of ${image}"
316 local image="$1"
327 --image "${image}" \
363 local image="$1"
371 if unzip -p "${image}" "META/ab_partitions.txt" >"${ab_partitions_list}"; then
395 if ! unzip -p "${image}" "META/update_engine_config.txt" \
415 ZLIB_FINGERPRINT=$(unzip -p "${image}" "META/zlib_fingerprint.txt")
[all …]
/system/libufdt/utils/
DREADME.md10 `mkdtimg` is a tool for creating the `dtb`/`dtbo` image.
11 You can use `mkdtimg` to pack one or more DTB/DTBO files into an image.
15 This is the layout for `dtb`/`dtbo` image:
66 Use the `create` command to create a `dtb`/`dtbo` image:
75 Each dtb/dtbo `ftbX_filename` will generate a `dt_table_entry` in image.
140 The `cfg_create` command creates an image with a config file in the following
186 the image. Example:
/system/core/healthd/
DAndroid.mk133 define _add-charger-image
148 $(eval $(call _add-charger-image,$(_img))))
156 _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.mk804 define ue-unittest-sample-image
818 $(call ue-unittest-sample-image,disk_ext2_1k.img)
819 $(call ue-unittest-sample-image,disk_ext2_4k.img)
820 $(call ue-unittest-sample-image,disk_ext2_4k_empty.img)
821 $(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/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/sepolicy/public/
Ddex2oat.te58 # pass file descriptors for the preopted boot image to dex2oat. So dex2oat needs to be able to
Dattributes287 # from one core domain to another, without having to update the vendor image
/system/core/fastboot/
DREADME.md133 flash:%s Write the previously downloaded image to the
329 incomplete. Large data such as downloading an image may require many
/system/chre/chre_api/doc/
DDoxyfile865 # \image command).
1393 # sheet generated by doxygen has an example that shows how to put an image at
2283 # The DOT_IMAGE_FORMAT tag can be used to set the image format of the images
2284 # generated by dot. For an explanation of the image formats see the section
/system/media/audio_utils/
DDoxyfile832 # \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
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