Added jvm and js implementation for sha256/512

This commit is contained in:
Ugljesa Jovanovic authored and Ugljesa Jovanovic committed 2020-08-31 20:56:36 +02:00
1 parent 15be707114
commit 1894a5d995
6 files changed
+131 -64

No files matched your search

@@ -15,7 +15,8 @@ expect class Sha512State
expect object Hash {
fun hash(data: UByteArray) : UByteArray
//Not present in LazySodium
//fun hash(data: UByteArray) : UByteArray
fun sha256(data: UByteArray) : UByteArray
fun sha256Init() : Sha256State