Home
last modified time | relevance | path

Searched refs:DIGEST_SIZE_BYTES (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/core/java/com/android/server/
DPersistentDataBlockService.java123 public static final int DIGEST_SIZE_BYTES = 32; field in PersistentDataBlockService
242 inputStream.skipBytes(DIGEST_SIZE_BYTES); in getTotalDataSizeLocked()
273 byte[] storedDigest = new byte[DIGEST_SIZE_BYTES]; in enforceChecksumValidity()
300 outputStream.write(digest, 0, DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
334 if (storedDigest != null && storedDigest.length == DIGEST_SIZE_BYTES) { in computeDigestLocked()
337 inputStream.skipBytes(DIGEST_SIZE_BYTES); in computeDigestLocked()
342 md.update(data, 0, DIGEST_SIZE_BYTES); // include 0 checksum in digest in computeDigestLocked()
365 byte[] data = new byte[DIGEST_SIZE_BYTES]; in formatPartitionLocked()
367 outputStream.write(data, 0, DIGEST_SIZE_BYTES); in formatPartitionLocked()
433 long actualSize = getBlockDeviceSize() - HEADER_SIZE - DIGEST_SIZE_BYTES in doGetMaximumDataBlockSize()
[all …]
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java46 private static final int DIGEST_SIZE_BYTES = 32; // SHA-256 size field in VerityBuilder
206 private final byte[] mDigestBuffer = new byte[DIGEST_SIZE_BYTES];
379 byte[] rootHash = new byte[DIGEST_SIZE_BYTES]; in generateVerityTreeInternal()
482 long levelDigestSize = divideRoundup(fileSize, CHUNK_SIZE_BYTES) * DIGEST_SIZE_BYTES; in calculateVerityLevelOffset()