A nicer workaround for JS compiler wrong function name bug
This commit is contained in:
1 parent
5d61858f81
commit
e997c18d1d
8 files changed
+38
-28
No files matched your search
+1
-1
@@ -27,7 +27,7 @@ actual class Crypto internal actual constructor() {
|
||||
|
||||
val _emitByteArray: ByteArray = ByteArray(0)
|
||||
|
||||
actual fun crypto_hash_sha256_init_spec(): Sha256State {
|
||||
actual fun crypto_hash_sha256_init(): Sha256State {
|
||||
val allocated = sodium_malloc(debug.test.Sha256State.size.convert())!!
|
||||
val state = allocated.reinterpret<debug.test.Sha256State>().pointed
|
||||
libsodium.crypto_hash_sha256_init(state.ptr)
|
||||
|
||||
Reference in new issue
Block a user