convert HashFunction to interface
This commit is contained in:
@@ -4,7 +4,7 @@ import com.infendro.bytearray.toUByteArray
|
||||
import com.infendro.bytearray.toUIntArray
|
||||
import com.infendro.hash.HashFunction
|
||||
|
||||
object `Blake-224` : HashFunction() {
|
||||
object `Blake-224` : HashFunction {
|
||||
override val bytes: Int
|
||||
get() = 28
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.infendro.bytearray.toUByteArray
|
||||
import com.infendro.bytearray.toUIntArray
|
||||
import com.infendro.hash.HashFunction
|
||||
|
||||
object `Blake-256` : HashFunction() {
|
||||
object `Blake-256` : HashFunction {
|
||||
override val bytes: Int
|
||||
get() = 32
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.infendro.bytearray.toUByteArray
|
||||
import com.infendro.bytearray.toULongArray
|
||||
import com.infendro.hash.HashFunction
|
||||
|
||||
object `Blake-384` : HashFunction() {
|
||||
object `Blake-384` : HashFunction {
|
||||
override val bytes: Int
|
||||
get() = 48
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ import com.infendro.bytearray.toUByteArray
|
||||
import com.infendro.bytearray.toULongArray
|
||||
import com.infendro.hash.HashFunction
|
||||
|
||||
object `Blake-512` : HashFunction() {
|
||||
object `Blake-512` : HashFunction {
|
||||
override val bytes: Int
|
||||
get() = 64
|
||||
|
||||
|
||||
Reference in New Issue
Block a user