Adding libsodium
This commit is contained in:
1 parent
7238b09112
commit
3f7df6c651
6 files changed
+49
-130
No files matched your search
+2
-1
@@ -1,5 +1,6 @@
|
||||
package com.ionspin.kotlin.crypto.hash.blake2b
|
||||
|
||||
import interop.*
|
||||
import kotlinx.cinterop.*
|
||||
/**
|
||||
* Created by Ugljesa Jovanovic
|
||||
* ugljesa.jovanovic@ionspin.com
|
||||
|
||||
Whitespace-only changes.
+23
@@ -0,0 +1,23 @@
|
||||
package com.ionspin.kotlin.crypto.hash.blake2b
|
||||
|
||||
/**
|
||||
* Created by Ugljesa Jovanovic
|
||||
* ugljesa.jovanovic@ionspin.com
|
||||
* on 24-May-2020
|
||||
*/
|
||||
|
||||
import interop.*
|
||||
import kotlinx.cinterop.*
|
||||
import libsodium.*
|
||||
|
||||
import kotlin.test.Test
|
||||
|
||||
class Blake2bLinuxTest {
|
||||
|
||||
@Test
|
||||
fun testCinterop() {
|
||||
val sodiumInitResult = sodium_init()
|
||||
// println("Sodium init $sodiumInitResult")
|
||||
println("1")
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
headers = sodium.h
|
||||
headerFilter = sodium.h sodium/**
|
||||
staticLibraries = libsodium.a
|
||||
libraryPaths = lib
|
||||
compilerOpts = -Iinclude
|
||||
linkerOpts = {{LDFLAGS}}
|
||||
libraryPaths = /usr/lib
|
||||
compilerOpts = -Iinclude -I/usr/include
|
||||
linkerOpts = -L/usr/lib -lsodium
|
||||
Reference in new issue
Block a user