convert HashFunction to interface
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
package com.infendro.hash
|
||||
|
||||
abstract class HashFunction {
|
||||
abstract val bytes: Int
|
||||
interface HashFunction {
|
||||
val bytes: Int
|
||||
val bits: Int
|
||||
get() = bytes * 8
|
||||
|
||||
abstract val block: Int
|
||||
val block: Int
|
||||
|
||||
abstract fun hash(
|
||||
fun hash(
|
||||
value: UByteArray,
|
||||
): UByteArray
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user