14 lines
197 B
Kotlin
14 lines
197 B
Kotlin
package com.infendro.hash
|
|
|
|
interface HashFunction {
|
|
val bytes: Int
|
|
val bits: Int
|
|
get() = bytes * 8
|
|
|
|
val block: Int
|
|
|
|
fun hash(
|
|
value: UByteArray,
|
|
): UByteArray
|
|
}
|