Sha512

object Sha512

Pure-Kotlin SHA-512 core (FIPS 180-4), with SHA-384 as the same permutation under a different IV and truncated output.

Used by PDF Standard Security Handler R6 (PDF 2.0) Algorithm 2.B, which selects SHA-256/384/512 per iteration based on the running state.

Functions

Link copied to clipboard
fun hash(input: ByteArray): ByteArray
Link copied to clipboard

SHA-384 = SHA-512 with a different IV, output truncated to 48 bytes.