Adding data classes

This commit is contained in:
Ugljesa Jovanovic committed 2020-08-14 12:39:27 +02:00
1 parent fcc4d87610
commit a5b20daf5a
17 files changed
+263 -375

No files matched your search

@@ -13,7 +13,13 @@ actual typealias Sha512State = Any
actual typealias GenericHashState = Any
actual typealias SecretStreamState = Any
actual class Crypto internal actual constructor() {
/**
* Initialize the SHA256 hash
* returns sha 256 state
*/
actual fun crypto_hash_sha256_init(): dynamic {
println("Debug crypto_hash_sha256_init")
val result = js("getSodium().crypto_hash_sha256_init()")
@@ -50,4 +56,9 @@ actual class Crypto internal actual constructor() {
println("Debug crypto_generichash_init")
return getSodium().crypto_generichash_init(key.toUInt8Array(), outlen)
}
actual fun crypto_secretstream_xchacha20poly1305_init_push(key: UByteArray): dynamic {
println("Debug crypto_secretstream_xchacha20poly1305_init_push")
}
}