implement hash size property

This commit is contained in:
2025-07-20 10:04:23 +02:00
parent 17887c6b5d
commit ab3cded991
7 changed files with 22 additions and 0 deletions

View File

@@ -5,6 +5,9 @@ import com.infendro.hash.util.toByteArray
import com.infendro.hash.util.toULongArray
object SHA512 : HashFunction() {
override val bytes: Int
get() = 64
private val k = arrayOf(
0x428a2f98d728ae22UL, 0x7137449123ef65cdUL, 0xb5c0fbcfec4d3b2fUL, 0xe9b5dba58189dbbcUL, 0x3956c25bf348b538UL,
0x59f111f1b605d019UL, 0x923f82a4af194f9bUL, 0xab1c5ed5da6d8118UL, 0xd807aa98a3030242UL, 0x12835b0145706fbeUL,