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 VerityBuilder120 + CHUNK_SIZE_BYTES); // maximum size of apk-verity metadata in generateVerityTreeInternal()151 ByteBuffer footer = ByteBuffer.allocate(CHUNK_SIZE_BYTES).order(ByteOrder.LITTLE_ENDIAN); in generateApkVerityRootHash()193 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES;296 int lastIncompleteChunkSize = (int) (file.length() % CHUNK_SIZE_BYTES); in generateFsVerityDigestAtLeafLevel()298 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateFsVerityDigestAtLeafLevel()341 int lastIncompleteChunkSize = (int) (apk.length() % CHUNK_SIZE_BYTES); in generateApkVerityDigestAtLeafLevel()343 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateApkVerityDigestAtLeafLevel()373 consumeByChunk(digester, source, CHUNK_SIZE_BYTES); in generateVerityTreeInternal()381 digester.consume(slice(output, 0, CHUNK_SIZE_BYTES)); in generateVerityTreeInternal()[all …]
241 int chunkSize = (int) Math.min(inputRemaining, CHUNK_SIZE_BYTES); in computeContentDigestsPer1MbChunk()386 return (inputSizeBytes + CHUNK_SIZE_BYTES - 1) / CHUNK_SIZE_BYTES; in getChunkCount()389 private static final int CHUNK_SIZE_BYTES = 1024 * 1024; field in ApkSigningBlockUtils