Searched refs:CHUNK_SIZE_BYTES (Results 1 – 2 of 2) sorted by relevance
45 private static final int CHUNK_SIZE_BYTES = 4096; // Typical Linux block size field in VerityBuilder99 + CHUNK_SIZE_BYTES); // maximum size of apk-verity metadata in generateVerityTreeInternal()140 + CHUNK_SIZE_BYTES); // maximum size of apk-verity metadata in generateFsVerityRootHash()178 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES;282 int lastIncompleteChunkSize = (int) (file.length() % CHUNK_SIZE_BYTES); in generateFsVerityDigestAtLeafLevel()284 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateFsVerityDigestAtLeafLevel()327 int lastIncompleteChunkSize = (int) (apk.getChannel().size() % CHUNK_SIZE_BYTES); in generateApkVerityDigestAtLeafLevel()329 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateApkVerityDigestAtLeafLevel()353 consumeByChunk(digester, source, CHUNK_SIZE_BYTES); in generateFsVerityTreeInternal()361 digester.consume(slice(output, 0, CHUNK_SIZE_BYTES)); in generateFsVerityTreeInternal()[all …]
278 int chunkSize = (int) Math.min(inputRemaining, CHUNK_SIZE_BYTES); in computeContentDigestsPer1MbChunk()423 return (inputSizeBytes + CHUNK_SIZE_BYTES - 1) / CHUNK_SIZE_BYTES; in getChunkCount()426 private static final int CHUNK_SIZE_BYTES = 1024 * 1024; field in ApkSigningBlockUtils