Init is done automatically by libsodium.js
This commit is contained in:
parent
0f4001b8c8
commit
a10faf1967
@ -5,10 +5,9 @@
|
|||||||
|
|
||||||
#### 0.8.3 - 28.5.2021
|
#### 0.8.3 - 28.5.2021
|
||||||
- Built with kotlin 1.5.10
|
- 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
|
- Changed subkey id to UInt from Int, limited by JS api
|
||||||
- Updated libsodium to latest master 710b2d3963347017ba (potentially will be switched to stable branch)
|
- 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
|
#### 0.8.2 - Split from crypto repository and initial release
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ attack surfaces, bugs and other issues and you shouldn't use it in production un
|
|||||||
|
|
||||||
#### Gradle
|
#### Gradle
|
||||||
```kotlin
|
```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
|
#### Snapshot builds
|
||||||
@ -23,7 +23,7 @@ implementation("com.ionspin.kotlin:multiplatform-crypto-lisodium-bindings:0.8.2"
|
|||||||
repositories {
|
repositories {
|
||||||
maven("https://oss.sonatype.org/content/repositories/snapshots")
|
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 ")
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ object JsSodiumLoader {
|
|||||||
setSodiumPointer(promisedSodium)
|
setSodiumPointer(promisedSodium)
|
||||||
sodiumLoaded = true
|
sodiumLoaded = true
|
||||||
continuation.resumeWith(Result.success(Unit))
|
continuation.resumeWith(Result.success(Unit))
|
||||||
sodiumPointer.sodium_init()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
suspend fun load() = suspendCoroutine<Unit> { continuation ->
|
suspend fun load() = suspendCoroutine<Unit> { continuation ->
|
||||||
|
Loading…
x
Reference in New Issue
Block a user