MOD: moved docs not related to this specific project outtaaahereee
This commit is contained in:
parent
1175f03b0e
commit
f5fddbe3ee
5
README
5
README
|
@ -6,8 +6,9 @@ Copius Cipher Chain (CCC)
|
|||
Next Crypto Engine (NCE)
|
||||
========================
|
||||
|
||||
The say "don't roll your own crypto".
|
||||
Well fsck those arogant guys!!
|
||||
They say "don't roll your own crypto".
|
||||
Well fsck those arogant guys!! lolz ;)
|
||||
Crack this, Nu Sigma Alpha
|
||||
|
||||
|
||||
Features
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
=======
|
||||
Flutter
|
||||
=======
|
||||
|
||||
|
||||
|
||||
Metadata
|
||||
========
|
||||
* https://flutter.dev/docs/get-started/codelab
|
||||
* https://flutter.dev/docs/reference/tutorials
|
||||
* https://flutter.dev/docs/resources/videos
|
||||
* https://flutter.dev/docs/get-started/flutter-for/android-devs
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Flutter Install Notes
|
||||
=====================
|
||||
* do all of this as "j3g" NOT "overlord"
|
||||
* download zip file, unzip, move to /Users/j3g/apps/
|
||||
* sym-linked: ln -s /Users/j3g/apps/flutter/bin/flutter /usr/local/bin/flutter
|
||||
* $ flutter doctor (execute this command)
|
||||
- configure for android, follow directions
|
||||
- configure for iphone, follow directions
|
||||
- CocoaPods install/setup (seems very large 2+ GB !!)
|
||||
- install as "j3g" user because installs to ~/.cocoapods
|
||||
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
==============
|
||||
Flutter Plugin
|
||||
==============
|
||||
|
||||
|
||||
* FLUTTER
|
||||
- https://flutter.dev/docs/development/packages-and-plugins/developing-packages
|
||||
* Good Example
|
||||
- https://medium.com/flutter-io/writing-a-good-flutter-plugin-1a561b986c9c
|
||||
* How to Open Android Source Code Plugin Lib Inside Flutter Project
|
||||
- https://github.com/flutter/flutter/issues/19830
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
===================
|
||||
USER INTERFACE (UI)
|
||||
===================
|
||||
|
||||
|
||||
ANDROID
|
||||
=======
|
||||
* Android JetPack
|
||||
- https://medium.com/deemaze-software/android-jetpack-navigation-architecture-component-b603c9a8100c
|
||||
|
||||
|
||||
|
||||
GRAPHICS
|
||||
========
|
||||
|
||||
|
||||
|
||||
iOS
|
||||
===
|
||||
* CocoaPods
|
||||
* $ open -a Simulator
|
||||
|
||||
|
|
@ -1,79 +0,0 @@
|
|||
=========
|
||||
CCC Agile
|
||||
=========
|
||||
|
||||
|
||||
WORKING
|
||||
=======
|
||||
* NC: create flutter plugin
|
||||
* NC: add more JNI crypto features: CHACHA, Etc...
|
||||
* UI: flutter, add new screens
|
||||
- adding encrypt screen
|
||||
* l@@k at Android Weekly emails
|
||||
|
||||
|
||||
|
||||
BACKLOG
|
||||
=======
|
||||
|
||||
Tasks
|
||||
^^^^^
|
||||
* GET THE LATEST
|
||||
- get the lastest ndk
|
||||
- get the latest gradle (see if 5.x is compatible)
|
||||
- get the latest wolfssl code
|
||||
- COMPILE!! =)
|
||||
|
||||
* create "update_wolfssl.sh" script to pull latest from the repository, apply patches, build wolfssl, then copy library files to a "dist" folder for usage. As of right now the build works but the generated files aren''t auto copied. It is generated by hand.
|
||||
* l@@k at https://en.wikipedia.org/wiki/NTRU
|
||||
* l@@k at http://facebook.github.io/conceal/
|
||||
* l@@k at https://techcrunch.com/2018/10/03/googles-cyber-unit-jigsaw-introduces-intra-a-security-app-dedicated-to-busting-censorship/
|
||||
* l@@k at TLS Toolkit: https://www.insidesecure.com/Products/Network-security/Secure-Communication-Toolkits/Inside-Secure-TLS-Toolkit
|
||||
* l@@k at PolarSSL: https://tls.mbed.org/tech-updates/releases/mbedtls-2.16.0-2.7.9-and-2.1.18-released
|
||||
* Create Multi Projects
|
||||
- nc-wc-ndk (remove android GUI code)
|
||||
- ccc-gui-a (android)
|
||||
- ccc-gui-f (flutter)
|
||||
- ccc-gui-i (iOS)
|
||||
- ccc-gui-e (electron)
|
||||
- ccc-cmd (command line)
|
||||
|
||||
|
||||
|
||||
Milestones
|
||||
^^^^^^^^^^
|
||||
* normalizedcrypto
|
||||
- maybe wrap nextcrypto with a *VERY* simple API
|
||||
- new StrongestCrypt() (post-quantum, maybe even double-wrap)
|
||||
- new Strong() (AES_GCM_256-SHA512-RSA4096)
|
||||
- new Fastest()
|
||||
- new LossyCrypto()
|
||||
|
||||
|
||||
|
||||
COMPLETED
|
||||
=========
|
||||
* NC: add more JNI crypto features: SHA, RSA
|
||||
* TEST: add test code for JNI calls
|
||||
- tested AES, everything else should work accordingly
|
||||
* combine wolfssl-lib + wolfssl-jni == ccc-ndk-jni (not ccc-jni which would be for java)
|
||||
- TEST: check that all builds OK (ok-dokey)
|
||||
- move from bash script builds, to all gradle (cleaning and copying libs)
|
||||
- no bash builds needed because gradle is generating an .aar package
|
||||
* WolfSSL compile
|
||||
- fixing CMake build
|
||||
- discover which gradle to target --> wolfssl was main gradle app target
|
||||
|
||||
|
||||
Milestones
|
||||
^^^^^^^^^^
|
||||
* JNI wrapper tests
|
||||
- RSA Public Key Generation
|
||||
- AES crypt
|
||||
* X Android application skeleton
|
||||
* X WolfSSL validate with JNI
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
=========================
|
||||
Next Crypto Project Notes
|
||||
=========================
|
||||
|
||||
|
||||
FEATURES
|
||||
--------
|
||||
* ndk cmake builds (C++, LLVM support, ABI)
|
||||
* .aar library packaging, includes java .class files (and other resources)
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
@ -1,77 +0,0 @@
|
|||
===============
|
||||
Weekly Progress
|
||||
===============
|
||||
|
||||
WORKING
|
||||
-------
|
||||
* changed from SHARED to STATIC and now build stops working
|
||||
|
||||
|
||||
|
||||
COMPLETED
|
||||
---------
|
||||
* build static lib (.a)
|
||||
- this had the result of putting the library files at ./dist/lib/<ARCH> instead of the
|
||||
default location of ./build/intermediates/cmake/debug/obj/<ARCH> and
|
||||
./build/intermediates/cmake/release/obj/<ARCH>
|
||||
- only one set of files copied into the ./dist/lib/<ARCH> directory...was it RELEASE
|
||||
or DEBUG?? likely RELEASE...
|
||||
|
||||
* created new branch "wolfssl-mod", trying different things to break the build
|
||||
* building shared lib (.so)
|
||||
|
||||
* local.properties missing...copied from newer repos
|
||||
|
||||
|
||||
|
||||
ISSUES
|
||||
------
|
||||
* changed from SHARED to STATIC and now build stops working
|
||||
- changed back to SHARED, cleaned, build works!!!
|
||||
|
||||
|
||||
|
||||
nc-wc-ndk_MERGE
|
||||
---------------
|
||||
* looks like both wolfssl library and jni library were compiling
|
||||
- wolfssl is a static lib (.a)
|
||||
- jni is a shared lib (.so)
|
||||
|
||||
|
||||
|
||||
MISC
|
||||
====
|
||||
|
||||
::
|
||||
|
||||
gradle --version
|
||||
|
||||
------------------------------------------------------------
|
||||
Gradle 4.10.2
|
||||
------------------------------------------------------------
|
||||
|
||||
Build time: 2018-09-19 18:10:15 UTC
|
||||
Revision: b4d8d5d170bb4ba516e88d7fe5647e2323d791dd
|
||||
|
||||
Kotlin DSL: 1.0-rc-6
|
||||
Kotlin: 1.2.61
|
||||
Groovy: 2.4.15
|
||||
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
|
||||
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b06)
|
||||
OS: Mac OS X 10.14.2 x86_64
|
||||
|
||||
[j3g@J3G-MBPt:nc-wc-ndk_WOLFSSL] ./gradlew --version
|
||||
|
||||
------------------------------------------------------------
|
||||
Gradle 3.3
|
||||
------------------------------------------------------------
|
||||
|
||||
Build time: 2017-01-03 15:31:04 UTC
|
||||
Revision: 075893a3d0798c0c1f322899b41ceca82e4e134b
|
||||
|
||||
Groovy: 2.4.7
|
||||
Ant: Apache Ant(TM) version 1.9.6 compiled on June 29 2015
|
||||
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b06)
|
||||
OS: Mac OS X 10.14.2 x86_64
|
||||
|
||||
|
|
@ -1,80 +0,0 @@
|
|||
===============
|
||||
Weekly Progress
|
||||
===============
|
||||
|
||||
|
||||
WORKING
|
||||
=======
|
||||
* UI: Activity: plaintext, encrypt
|
||||
* NC: add more tests
|
||||
|
||||
|
||||
|
||||
Flutter
|
||||
=======
|
||||
* flutter doctor
|
||||
- cofigured for android
|
||||
- installed to /Users/j3g/apps/flutter
|
||||
- sym-linked to /usr/local/bin/flutter
|
||||
- CocoaPods setup (seems very large 2+ GB !!)
|
||||
* https://flutter.dev/docs/get-started/codelab
|
||||
* https://flutter.dev/docs/reference/tutorials
|
||||
* https://flutter.dev/docs/resources/videos
|
||||
|
||||
|
||||
|
||||
Android Layouts
|
||||
===============
|
||||
* Android ConstraintLayout 1.1.3
|
||||
- Design + Blueprint
|
||||
- attach the constaints, use margins, use the bias too
|
||||
- app:layout_constraintHorizontal_bias="0.2"
|
||||
|
||||
* android:theme="@style/Theme.AppCompat.NoActionBar"
|
||||
|
||||
|
||||
Android Theme
|
||||
-------------
|
||||
* Generate Icons, Labels
|
||||
- https://jgilfelt.github.io/AndroidAssetStudio/icons-launcher.html
|
||||
- https://romannurik.github.io/AndroidAssetStudio
|
||||
* https://developer.android.com/guide/topics/ui/look-and-feel/themes
|
||||
* Base.Theme.AppCompat
|
||||
|
||||
|
||||
|
||||
NOTES
|
||||
=====
|
||||
* Debug Android binaries:
|
||||
- https://resources.infosecinstitute.com/guide-debugging-android-binaries/
|
||||
* Android Library: https://developer.android.com/studio/projects/android-library
|
||||
* Android Dependencies: https://developer.android.com/studio/build/dependencies#duplicate_classes
|
||||
* NDK Obfuscation: https://github.com/Fuzion24/AndroidObfuscation-NDK
|
||||
* NDK SWIG example: https://github.com/sureshjoshi/android-ndk-swig-example
|
||||
|
||||
|
||||
|
||||
COMPLETED
|
||||
=========
|
||||
* NC: added JNI connection code for all crypto
|
||||
* Create Two Projects
|
||||
- nc-wc-ndk (remove android GUI code)
|
||||
- all crypto-core, java wrapper code, for copius+cipher+chain
|
||||
- add mods to wolfssl-oem, mod AES "s-boxes", figure out 512bit key AES
|
||||
- ccc-gui-a (android GUI)
|
||||
- pretty user interface for the crypto-core
|
||||
* test JNI lib !!! =)
|
||||
- try some java code that will call a C-hook
|
||||
* create distributed library package
|
||||
- generage wolfssl-jni.aar
|
||||
|
||||
|
||||
|
||||
ISSUES
|
||||
======
|
||||
* how to include NDK ABI Libs and also java class files??
|
||||
- use a ".aar" file, it is generated from gradle
|
||||
- ./build/outputs/aar/.aar
|
||||
- apply plugin: 'com.android.library'
|
||||
|
||||
|
|
@ -1,98 +0,0 @@
|
|||
==========================
|
||||
Weekly Progress 2019-03-01
|
||||
==========================
|
||||
|
||||
|
||||
WORKING
|
||||
=======
|
||||
|
||||
* NC: test more JNI crypto features: RSA, CHACHA, AES modes
|
||||
* UI: flutter
|
||||
- add combo spinner
|
||||
- adding basic encrypt screen
|
||||
* using local branch "ciphers" for updates to add more ciphers
|
||||
|
||||
* 2-factor AUTH??
|
||||
- 5 digit combo (or hash value...this would be more secure, like second password)
|
||||
- password
|
||||
|
||||
|
||||
|
||||
Cipher Combo API DESIGN
|
||||
=======================
|
||||
The following describes how the CCC library will be used.
|
||||
|
||||
* CipherCombo
|
||||
- this allows the library to encrypt with a deterministic pattern such that
|
||||
any desperate combo will work interchangably
|
||||
- Ccc_enc( CipherCombo combo, Password pass, Message msg )
|
||||
|
||||
* Cipher
|
||||
- this allows the library to encrypt with a single cipher
|
||||
- Ccc_enc( Cipher cipher, Password pass, Message msg )
|
||||
|
||||
* CipherPattern
|
||||
- this allows a specific pattern of ciphers to be set
|
||||
- Ccc_enc( CipherPattern pattern, Password pass, Message msg )
|
||||
|
||||
* EasyCipher
|
||||
- this allows anyone to use the library and expect the library to know the best,
|
||||
more powerful cipher; fastest cipher that is secure; most secure cipher
|
||||
- Ccc_enc ( EasyCipher cipher, Password pass, Message msg )
|
||||
- EasyCipher: ( BEST, FAST, ... )
|
||||
|
||||
|
||||
|
||||
|
||||
NOTES
|
||||
=====
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
COMPLETED
|
||||
=========
|
||||
|
||||
* NC: ShaTest.java works with .aar library!!
|
||||
* NC: updated the compile process, new CFlags!! added all ciphers!! (file: build.gradle)
|
||||
- library now supports ALL ciphers
|
||||
- also added support to generate keys (pub/pvt)
|
||||
|
||||
|
||||
|
||||
|
||||
ISSUES
|
||||
======
|
||||
|
||||
|
||||
MakeRsaKey : Feature not compiled in
|
||||
------------------------------------
|
||||
* fix this by adding compile CFlag '-DWOLFSSL_KEY_GEN'
|
||||
|
||||
::
|
||||
|
||||
MakeRsaKey()
|
||||
https://www.wolfssl.com/doxygen/group__RSA.html#ga3f89eea8d56ae352730ffd49ec2fd68e
|
||||
|
||||
#ifdef WOLFSSL_KEY_GEN
|
||||
...
|
||||
|
||||
E/AndroidRuntime: FATAL EXCEPTION: main
|
||||
Process: io.malloc.ccc.android.mytest, PID: 24791
|
||||
com.wolfssl.wolfcrypt.WolfCryptException: Feature not compiled in
|
||||
at com.wolfssl.wolfcrypt.Rsa.MakeRsaKey(Native Method)
|
||||
at com.wolfssl.wolfcrypt.Rsa.makeKey(Rsa.java:135)
|
||||
at io.malloc.ccc.android.nc.RsaTest.testEncDec(RsaTest.java:41)
|
||||
at io.malloc.ccc.android.ui.MainActivity$1.onClick(MainActivity.java:40)
|
||||
at android.view.View.performClick(View.java:5637)
|
||||
at android.view.View$PerformClick.run(View.java:22429)
|
||||
at android.os.Handler.handleCallback(Handler.java:751)
|
||||
at android.os.Handler.dispatchMessage(Handler.java:95)
|
||||
at android.os.Looper.loop(Looper.java:154)
|
||||
at android.app.ActivityThread.main(ActivityThread.java:6119)
|
||||
at java.lang.reflect.Method.invoke(Native Method)
|
||||
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
|
||||
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
|
||||
|
|
@ -1,30 +0,0 @@
|
|||
===============
|
||||
Weekly Progress
|
||||
===============
|
||||
|
||||
|
||||
WORKING
|
||||
=======
|
||||
* create flutter plugin for android
|
||||
* NC: add more JNI crypto features: CHACHA, Etc...
|
||||
|
||||
|
||||
|
||||
ISSUES
|
||||
======
|
||||
|
||||
|
||||
|
||||
|
||||
NOTES
|
||||
=====
|
||||
|
||||
|
||||
"Next Crypto"
|
||||
* provides a wrapper around MULTIPLE cipher libraries (WolfSSL, TLSmbed, PolarSSL)
|
||||
* allows for custom personal modified ciphers
|
||||
|
||||
"Copius Cipher Chain"
|
||||
* will chain multiple ciphers by interations or time, using a deterministic pattern derived from a combination "54321"
|
||||
* last iteration should be a custom cipher
|
||||
|
|
@ -1,21 +0,0 @@
|
|||
===============
|
||||
Weekly Progress
|
||||
===============
|
||||
|
||||
|
||||
WORKING
|
||||
=======
|
||||
|
||||
|
||||
|
||||
ISSUES
|
||||
======
|
||||
|
||||
|
||||
|
||||
|
||||
NOTES
|
||||
=====
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue