xAAL-sec-lib ============ xAAL use Poly1305/Chacha20 to cipher/decipher messages. LibSodium provides nice support for this, but we were unable to find a Java binding for this right now. (most bindings don't support chacha20 in fact). We decided to write this quick & dirty JNI wrapper to fix this issue. Instuctions: ------------ * To build the shared lib: make lib * To build java classes: make classes * To build jar: make jar * To test: make test You should be able to import the Java classes into an IDE, simply open the the src/ folder. Notes: ------ - If you want a sample example to use this lib, look at => src/org/tb/xaal/sec/Test.java - Java don't provide a very usefull set of feature to deal microsecond timestamps. I decided to simply build the nonce with second,milliseconcds + random. This should be fine for chacha20. - This lib is a temporary fix, we hope chacha20 & Poly will have some binding soon. - This lib have be tested on x86 & ARM7 plateform (just change the JAVA_HOME in Makefile)