Remove logging from loader, stream exception

This commit is contained in:
Ugljesa Jovanovic committed 2022-03-25 15:56:36 +01:00
1 parent cdb6ecb8f9
commit 7625a2d103
3 files changed
+2 -4

No files matched your search

@@ -22,7 +22,6 @@ object JsSodiumLoader {
}
suspend fun load() = suspendCoroutine<Unit> { continuation ->
console.log(getSodiumLoaded())
if (!getSodiumLoaded()) {
_libsodiumPromise.then<dynamic> {
sodium_init()
@@ -37,7 +36,6 @@ object JsSodiumLoader {
}
fun loadWithCallback(doneCallback: () -> (Unit)) {
console.log(getSodiumLoaded())
if (!getSodiumLoaded()) {
_libsodiumPromise.then<dynamic> {
sodium_init()
@@ -35,7 +35,7 @@ actual object Stream {
val result = getSodium().crypto_stream_chacha20_ietf_xor_ic(
message.toUInt8Array(),
nonce.toUInt8Array(),
initialCounter.toUInt(),
initialCounter,
key.toUInt8Array()
)