fun computeDigest()

in lib/src/main/kotlin/org/jetbrains/zip/signer/digest/DigestUtils.kt [12:26]


    fun computeDigest(
        digestAlgorithms: List<ContentDigestAlgorithm>,
        zipSections: ZipSections,
        maximumChunkSize: Int = 1024 * 1024 // 1MB
    ): List<Digest> {
        return computeDigest(
            digestAlgorithms,
            listOf(
                zipSections.beforeSigningBlockSection,
                zipSections.centralDirectorySection,
                ByteBufferDataSource(ZipUtils.getModifiedEocdRecord(zipSections, 0))
            ),
            maximumChunkSize
        )
    }