implement block property

This commit is contained in:
2025-11-10 14:44:32 +01:00
parent e5bbd9730c
commit 2051c3fcbd
8 changed files with 24 additions and 4 deletions

View File

@@ -9,6 +9,9 @@ object `SHA-224` : HashFunction() {
override val bytes: Int
get() = 28
override val block: Int
get() = 64
private val k = uintArrayOf(
0x428a2f98U, 0x71374491U, 0xb5c0fbcfU, 0xe9b5dba5U, 0x3956c25bU, 0x59f111f1U, 0x923f82a4U, 0xab1c5ed5U,
0xd807aa98U, 0x12835b01U, 0x243185beU, 0x550c7dc3U, 0x72be5d74U, 0x80deb1feU, 0x9bdc06a7U, 0xc19bf174U,