Cleanup
This commit is contained in:
1 parent
f51374ce15
commit
ccbb8ebe5b
15 files changed
+41
-33
No files matched your search
+1
-1
@@ -36,7 +36,7 @@ actual class Blake2bDelegated actual constructor(key: UByteArray?, hashLength: I
|
||||
actual object Blake2bStateless : Blake2bStatelessInterface {
|
||||
override val MAX_HASH_BYTES: Int = 64
|
||||
|
||||
override suspend fun digest(inputString: String, key: String?, hashLength: Int): UByteArray {
|
||||
override fun digest(inputString: String, key: String?, hashLength: Int): UByteArray {
|
||||
val hashed = getSodium().crypto_generichash(64, inputString)
|
||||
val hash = UByteArray(MAX_HASH_BYTES)
|
||||
for (i in 0 until MAX_HASH_BYTES) {
|
||||
|
||||
Reference in new issue
Block a user