implement hash size property
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user