Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pdb/
DPersistentDataBlockService.java172 public static final int DIGEST_SIZE_BYTES = 32; field in PersistentDataBlockService
396 inputStream.skipBytes(DIGEST_SIZE_BYTES); in getTotalDataSizeLocked()
426 return (int) (getTestHarnessModeDataOffset() - DIGEST_SIZE_BYTES - HEADER_SIZE in getMaximumFrpDataSize()
456 byte[] storedDigest = new byte[DIGEST_SIZE_BYTES]; in enforceChecksumValidity()
483 ByteBuffer buf = ByteBuffer.allocate(DIGEST_SIZE_BYTES); in computeAndWriteDigestLocked()
518 if (storedDigest != null && storedDigest.length == DIGEST_SIZE_BYTES) { in computeDigestLocked()
521 inputStream.skipBytes(DIGEST_SIZE_BYTES); in computeDigestLocked()
526 md.update(data, 0, DIGEST_SIZE_BYTES); // include 0 checksum in digest in computeDigestLocked()
547 int header_size = DIGEST_SIZE_BYTES + HEADER_SIZE; in formatPartitionLocked()
549 buf.put(new byte[DIGEST_SIZE_BYTES]); in formatPartitionLocked()
[all …]
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java46 private static final int DIGEST_SIZE_BYTES = 32; // SHA-256 size field in VerityBuilder
191 private final byte[] mDigestBuffer = new byte[DIGEST_SIZE_BYTES];
359 byte[] rootHash = new byte[DIGEST_SIZE_BYTES]; in generateFsVerityTreeInternal()
389 byte[] rootHash = new byte[DIGEST_SIZE_BYTES]; in generateVerityTreeInternal()
492 long levelDigestSize = divideRoundup(fileSize, CHUNK_SIZE_BYTES) * DIGEST_SIZE_BYTES; in calculateVerityLevelOffset()
/frameworks/base/services/tests/servicestests/src/com/android/server/pdb/
DPersistentDataBlockServiceTest.java19 import static com.android.server.pdb.PersistentDataBlockService.DIGEST_SIZE_BYTES;
433 channel.position(channel.position() + DIGEST_SIZE_BYTES + HEADER_SIZE); in testPartitionFormat()
485 assertThat(readBackingFile(DIGEST_SIZE_BYTES + 4, headerAndDataBytes).array()) in wipeMakesItNotWritable()
1018 ch.write(ByteBuffer.wrap("mark".getBytes()), DIGEST_SIZE_BYTES); in tamperWithMagic()