refactor HashFunction

This commit is contained in:
2025-11-10 14:26:41 +01:00
parent e3619a2df1
commit e7e43f9cca
15 changed files with 115 additions and 126 deletions

View File

@@ -2,11 +2,12 @@ package com.infendro.hash
abstract class HashFunction {
abstract val bytes: Int
@Suppress("UNUSED")
val bits: Int
get() = bytes * 8
abstract fun hash(
value: ByteArray,
): ByteArray
value: UByteArray,
): UByteArray
}