implement common interface

This commit is contained in:
2025-12-12 16:10:57 +01:00
parent 6dec2fea74
commit 8f21a346db
2 changed files with 48 additions and 26 deletions

View 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
}