Use unsafe cast instead of conversion that creates new array

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-07-07 21:47:10 +02:00
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()}")
}
}