Remove logging from loader, stream exception
This commit is contained in:
3 files changed
+2
-4
No files matched your search
-2
@@ -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()
|
||||
|
||||
+1
-1
@@ -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()
|
||||
)
|
||||
|
||||
|
||||
Reference in new issue
Block a user