Searched refs:DIGEST_SIZE_BYTES (Results 1 – 2 of 2) sorted by relevance
123 public static final int DIGEST_SIZE_BYTES = 32; field in PersistentDataBlockService242 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 …]
46 private static final int DIGEST_SIZE_BYTES = 32; // SHA-256 size field in VerityBuilder206 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()