convert HashFunction to interface
This commit is contained in:
@@ -7,7 +7,7 @@ import com.infendro.hash.HashFunction
|
||||
|
||||
class Blake2s(
|
||||
override val bytes: Int,
|
||||
) : HashFunction() {
|
||||
) : HashFunction {
|
||||
init {
|
||||
if (bytes !in 1..32) throw IllegalArgumentException()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user