Home
last modified time | relevance | path

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

/tools/apksig/src/main/java/com/android/apksig/internal/util/
DVerityTreeBuilder.java146 int digestSize = mMd.getDigestLength(); in generateVerityTree() local
150 int[] levelOffset = calculateLevelOffset(fileSource.size(), digestSize); in generateVerityTree()
169 long totalOutput = divideRoundup(src.size(), CHUNK_SIZE) * digestSize; in generateVerityTree()
193 private static int[] calculateLevelOffset(long dataSize, int digestSize) { in calculateLevelOffset() argument
198 long size = CHUNK_SIZE * divideRoundup(chunkCount * digestSize, CHUNK_SIZE); in calculateLevelOffset()
200 if (chunkCount * digestSize <= CHUNK_SIZE) { in calculateLevelOffset()
203 dataSize = chunkCount * digestSize; in calculateLevelOffset()