NEW: both wolfssl-lib and wolfssl-jni build together =)

This commit is contained in:
JohnE 2019-02-09 12:23:42 -08:00
parent 565e98f410
commit 673b89f73b
11 changed files with 32 additions and 51 deletions

19
README
View File

@ -13,3 +13,22 @@
-Quantum-Computing safe crypto -Quantum-Computing safe crypto
-super-fast NTRU algorithm -super-fast NTRU algorithm
[[ Java Crypto Library ]]
[Crypto Providers]
-bouncy castle (various version ship)
-spongy castle
GCM not available
*** DON'T TRUST THE PROVIDERS!!! ***
[Key Features]
1) bluesalt - use bluetooth devices as unlock key, user, salt
-what you have (who you are, what you know)
2) random data - use camera for randomness
-fix android random problem

View File

@ -6,8 +6,6 @@ buildscript {
jcenter() jcenter()
} }
dependencies { dependencies {
// gradle tools 2.2.2+ supports stable ndk
// classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.android.tools.build:gradle:3.2.1'
} }
} }

View File

@ -16,16 +16,6 @@ android {
cmake { cmake {
arguments '-DANDROID_PLATFORM=android-23', arguments '-DANDROID_PLATFORM=android-23',
'-DANDROID_TOOLCHAIN=clang' '-DANDROID_TOOLCHAIN=clang'
// Sets optional flags for the C compiler.
// cFlags \
// '-D_POSIX_THREADS', '-DNDEBUG',
// '-DPERSIST_SESSION_CACHE', '-DPERSIST_CERT_CACHE', '-DATOMIC_USER',
// '-DHAVE_PK_CALLBACKS', '-DNO_DSA',
// '-DNO_MD4', '-DNO_HC128', '-DNO_RABBIT',
// '-DHAVE_OCSP', '-DHAVE_CRL', '-DWOLFSSL_JNI', '-DHAVE_DH',
// '-Wall'
// explicitly build libs
//targets 'wolfssl'
} }
} }
@ -54,7 +44,6 @@ task copyLibs(type: Copy) {
into "dist/wolfssl-jni_${thisDate}/" into "dist/wolfssl-jni_${thisDate}/"
} }
dependencies { dependencies {
testImplementation 'junit:junit:4.12' testImplementation 'junit:junit:4.12'
} }

View File

@ -1,3 +1,3 @@
//include ':wolfssl-lib' include ':wolfssl-lib'
//include ':wolfssl-jni' include ':wolfssl-jni'
//include ':ccc-jni' include ':ccc-jni'

View File

@ -16,18 +16,7 @@ android {
cmake { cmake {
arguments '-DANDROID_PLATFORM=android-23', arguments '-DANDROID_PLATFORM=android-23',
'-DANDROID_TOOLCHAIN=clang' '-DANDROID_TOOLCHAIN=clang'
// Sets optional flags for the C compiler.
// cFlags \
// '-D_POSIX_THREADS', '-DNDEBUG',
// '-DPERSIST_SESSION_CACHE', '-DPERSIST_CERT_CACHE', '-DATOMIC_USER',
// '-DHAVE_PK_CALLBACKS', '-DNO_DSA',
// '-DNO_MD4', '-DNO_HC128', '-DNO_RABBIT',
// '-DHAVE_OCSP', '-DHAVE_CRL', '-DWOLFSSL_JNI', '-DHAVE_DH',
// '-Wall'
// explicitly build libs
//targets 'wolfssl'
} }
} }
} }

View File

@ -0,0 +1,10 @@
===================
LIBRARY BUILD DATES
===================
The following is the build history for this library.
Dates:
2019-02-09

View File

@ -1,17 +1,5 @@
apply plugin: 'com.android.library' apply plugin: 'com.android.library'
buildscript {
repositories {
google()
jcenter()
}
dependencies {
// gradle tools 2.2.2+ supports stable ndk
// classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'com.android.tools.build:gradle:3.2.1'
}
}
android { android {
compileSdkVersion 28 compileSdkVersion 28
// a default can be used, but it is good practice to explicitly select build tools // a default can be used, but it is good practice to explicitly select build tools
@ -43,21 +31,9 @@ android {
} }
} }
// buildTypes {
// release {
// minifyEnabled false
// proguardFiles getDefaultProguardFile('proguard-android.txt'),
// 'proguard-rules.pro'
// }
// }
externalNativeBuild { externalNativeBuild {
cmake { cmake {
path 'CMakeLists.txt' path 'CMakeLists.txt'
} }
} }
} }
dependencies {
//compile fileTree(dir: 'libs', include: ['*.jar'])
}