Use unsafe cast instead of conversion that creates new array
This commit is contained in:
1 parent
9751f80347
commit
5d3c14de2f
26 files changed
+101
-86
No files matched your search
@@ -22,7 +22,7 @@ object Sample {
|
||||
blake2bUpdateable.update("test".encodeToUByteArray())
|
||||
println(blake2bUpdateable.digest().toHexString())
|
||||
println("Blake2b stateless")
|
||||
val statelessResult = CryptoPrimitives.Blake2b.stateless("test".encodeToByteArray().toUByteArray())
|
||||
val statelessResult = CryptoPrimitives.Blake2b.stateless("test".encodeToUByteArray())
|
||||
println("Blake2b stateless: ${statelessResult.toHexString()}")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user