Init is done automatically by libsodium.js

This commit is contained in:
Ugljesa Jovanovic 2021-05-28 15:15:08 +02:00
parent 0f4001b8c8
commit a10faf1967
No known key found for this signature in database
GPG Key ID: 178E6DFCECCB0E0F
3 changed files with 3 additions and 5 deletions

View File

@ -5,10 +5,9 @@
#### 0.8.3 - 28.5.2021
- Built with kotlin 1.5.10
- Fixed loading but not initializing libsodium on js and jvm
- Fixed loading but not initializing libsodium on jvm
- Changed subkey id to UInt from Int, limited by JS api
- Updated libsodium to latest master 710b2d3963347017ba (potentially will be switched to stable branch)
- Experimentig with sodium_malloc usage instead of pinned UByteArrays
#### 0.8.2 - Split from crypto repository and initial release

View File

@ -15,7 +15,7 @@ attack surfaces, bugs and other issues and you shouldn't use it in production un
#### Gradle
```kotlin
implementation("com.ionspin.kotlin:multiplatform-crypto-lisodium-bindings:0.8.2")
implementation("com.ionspin.kotlin:multiplatform-crypto-lisodium-bindings:0.8.3")
```
#### Snapshot builds
@ -23,7 +23,7 @@ implementation("com.ionspin.kotlin:multiplatform-crypto-lisodium-bindings:0.8.2"
repositories {
maven("https://oss.sonatype.org/content/repositories/snapshots")
}
implementation("com.ionspin.kotlin:multiplatform-crypto-lisodium-bindings:0.8.3-SNAPSHOT ")
implementation("com.ionspin.kotlin:multiplatform-crypto-lisodium-bindings:0.8.4-SNAPSHOT ")
```

View File

@ -29,7 +29,6 @@ object JsSodiumLoader {
setSodiumPointer(promisedSodium)
sodiumLoaded = true
continuation.resumeWith(Result.success(Unit))
sodiumPointer.sodium_init()
}
suspend fun load() = suspendCoroutine<Unit> { continuation ->