implement common interface
This commit is contained in:
12
src/commonMain/kotlin/com/infendro/kdf/KDF.kt
Normal file
12
src/commonMain/kotlin/com/infendro/kdf/KDF.kt
Normal file
@@ -0,0 +1,12 @@
|
||||
package com.infendro.kdf
|
||||
|
||||
interface KDF {
|
||||
val bytes: Int
|
||||
val bits: Int
|
||||
get() = bytes * 8
|
||||
|
||||
fun hash(
|
||||
value: UByteArray,
|
||||
salt: UByteArray,
|
||||
): UByteArray
|
||||
}
|
||||
Reference in New Issue
Block a user