Searched refs:CHUNK_SIZE_BYTES (Results 1 – 2 of 2) sorted by relevance
41 private static final int CHUNK_SIZE_BYTES = 4096; // Typical Linux block size field in ApkVerityBuilder79 + CHUNK_SIZE_BYTES); // maximum size of fsverity metadata in generateApkVerity()86 merkleTreeSize + CHUNK_SIZE_BYTES); in generateApkVerity()110 ByteBuffer verityBlock = ByteBuffer.allocate(CHUNK_SIZE_BYTES) in generateFsverityRootHash()114 CHUNK_SIZE_BYTES - FSVERITY_HEADER_SIZE_BYTES); in generateFsverityRootHash()167 private static final int BUFFER_SIZE = CHUNK_SIZE_BYTES;290 int lastIncompleteChunkSize = (int) (apk.length() % CHUNK_SIZE_BYTES); in generateApkVerityDigestAtLeafLevel()292 digester.consume(ByteBuffer.allocate(CHUNK_SIZE_BYTES - lastIncompleteChunkSize)); in generateApkVerityDigestAtLeafLevel()314 consumeByChunk(digester, source, CHUNK_SIZE_BYTES); in generateApkVerityTree()322 digester.consume(slice(output, 0, CHUNK_SIZE_BYTES)); in generateApkVerityTree()[all …]
241 int chunkSize = (int) Math.min(inputRemaining, CHUNK_SIZE_BYTES); in computeContentDigestsPer1MbChunk()406 return (inputSizeBytes + CHUNK_SIZE_BYTES - 1) / CHUNK_SIZE_BYTES; in getChunkCount()409 private static final int CHUNK_SIZE_BYTES = 1024 * 1024; field in ApkSigningBlockUtils