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

@@ -1,6 +1,10 @@
package com.infendro.hash
sealed class HashFunction {
abstract val bytes: Int
val bits: Int
get() = bytes * 8
abstract fun hash(
value: ByteArray,
): ByteArray