Commit Graph

9 Commits

Author SHA1 Message Date
gardners
499c4018bf Imported ref10/ implementation of crypto_sign from supercop-20120525
as recommended a while back by Dan Bernstein as offering the fastest
implementation of the crypto_sign() primitives for ARM.
Indeed this implementation IS faster. See comparison below for a
Rock 500 handset (800MHz(?) ARM6, no NEON):

Original ref/ implementation on an R500 stock rom (non-rooted)::
mean signature generation time = 96.80ms
mean signature verification time = 272.20ms

ref10/ implementations on an R500 stock rom (non-rooted):
mean signature generation time = 4.00ms
mean signature verification time = 13.00ms

Approximately 20x speed up, just like that :)
2012-10-18 17:26:48 +10:30
gardners
1b5801b622 Move randombytes() from jni.c to keyring.c so that it is available
for the dna standalone binary.
Added code to initialise an empty keyring file with zeroed bitmap
and salt.
2012-04-10 13:49:18 +09:30
gardners
16fb3a3f61 Added missing GPL license statements. 2011-12-21 20:25:05 +10:30
gardners
5837499f0d Fixed bug in jni.c for CryptoBoxOpen. 2011-10-27 12:32:58 +10:30
gardners
b2070da074 Added my own version of randombytes() that works properly and eventually
times out if it can't succeed for wrapping into java.  Timeouts vital as
it lives in a critical section.
2011-10-23 19:49:17 +10:30
gardners
4636cd6577 Added wrapper for safe supply of random bytes for use in Java side. 2011-10-23 18:54:10 +10:30
gardners
77757f550d renamed methods for having all native methods in once class (required
by Java that one library loads into one class only).
Also added what I believe to be sane and efficient array access for
CryptoBox (use same approach for other calls as we write the JNI
interfaces).
2011-10-23 15:53:44 +10:30
gardners
62e3931498 Fixed jni.c to actually be right (the _00024 was a bit hard to guess). 2011-10-21 20:48:47 +10:30
gardners
58446ba5e5 Added initial JNI wrapper. 2011-10-21 10:56:49 +10:30