Simon Wilkinson
40ef7759b9
hcrypto: Remove bn.h from rand.h
...
rand.h doesn't require any symbols defined in bn.h, so don't
include bn.h in the header file. This makes it easier for applications
to include only the symmetric portions of libhcrypto.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-07-21 18:00:21 -07:00
Love Hornquist Astrand
94a5df1840
use ct_memcmp
2010-07-20 08:07:23 -07:00
Love Hornquist Astrand
baec3d761c
allow specifying the engine to use
2010-07-18 16:13:24 -07:00
Love Hornquist Astrand
aaf598c2fd
drop pregen
2010-07-18 14:10:55 -07:00
Love Hornquist Astrand
b9754f1def
pref numbers and switch to ltm
2010-07-18 14:08:26 -07:00
Love Hornquist Astrand
e7c7091ae5
add ltm dh
2010-07-18 13:26:39 -07:00
Love Hornquist Astrand
6c0c936595
select add libtommath
2010-07-18 13:04:03 -07:00
Love Hornquist Astrand
1a625c0908
ltm-0.41
2010-07-01 10:51:29 -07:00
Love Hornquist Astrand
5ca101c63e
fix compile warnings
2010-06-29 11:57:56 -07:00
Love Hornquist Astrand
6d0e3950a5
add hc_i2d_DHparams
2010-06-16 14:55:51 -07:00
Love Hornquist Astrand
0dcfbd65c9
add i2d_DHparams
2010-06-16 14:55:08 -07:00
Love Hornquist Astrand
cda41d7252
add i2d_DHparams
2010-06-16 14:55:04 -07:00
Love Hornquist Astrand
91020dd11d
add cfb8-aes modes
2010-06-03 17:20:40 -07:00
Love Hornquist Astrand
efa5a314a8
fix warnings
2010-06-03 16:16:48 -07:00
Love Hornquist Astrand
a11303a4ca
make tfm default
2010-06-01 20:24:52 -07:00
Love Hornquist Astrand
3f56365be0
don't reinit variable
2010-06-01 19:18:24 -07:00
Love Hornquist Astrand
2527594a5c
If build with libcrypto, load the openssl engine
2010-06-01 17:17:21 -07:00
Love Hornquist Astrand
de4cee4dd7
speed for rsa
2010-06-01 17:16:25 -07:00
Love Hornquist Astrand
4f90bb51d2
add gmp
2010-06-01 17:11:29 -07:00
Love Hornquist Astrand
f41c361718
make almost work
2010-06-01 17:10:57 -07:00
Love Hornquist Astrand
3c8d9ef8d5
more symbols
2010-06-01 15:07:43 -07:00
Love Hornquist Astrand
40327e0cf3
add more generate
2010-06-01 15:07:17 -07:00
Love Hornquist Astrand
661ce3d1a4
add more generate
2010-06-01 15:07:07 -07:00
Love Hornquist Astrand
8bb2de2e3f
test --time-key=generate
2010-06-01 15:06:53 -07:00
Love Hornquist Astrand
3d4eabb5ea
more testing
2010-06-01 15:05:07 -07:00
Love Hornquist Astrand
36bfbfc1d8
add fp_init_multi and fp_find_prime
2010-06-01 11:16:20 -07:00
Love Hornquist Astrand
5377497d47
add dh-tfm.obj
2010-06-01 11:02:56 -07:00
Love Hornquist Astrand
7f6734138e
use lu and typecast to avoid warning for sizeof() between 32 and 64 bit hosts
2010-05-27 10:40:59 -05:00
Love Hornquist Astrand
83b86bf013
add fp_radix_size
2010-05-27 10:40:05 -05:00
Love Hornquist Astrand
90cb0ecae6
Windows fixes from Asanka Herath
2010-05-27 10:10:06 -05:00
Asanka Herath
85f6e6d670
Build Tom's fast math library on Windows
2010-05-26 12:17:30 -04:00
Love Hornquist Astrand
e404c9db96
indent
2010-05-26 10:45:53 -05:00
Love Hornquist Astrand
3108d93489
add and use fp_isneg
2010-05-26 10:45:15 -05:00
Love Hornquist Astrand
658d110d4a
add tfm dh (and some missing files)
2010-05-26 10:27:32 -05:00
Love Hornquist Astrand
b09eac50ee
clean up
2010-05-26 10:19:07 -05:00
Love Hornquist Astrand
a45d584792
add tfm dh (and some missing files)
2010-05-26 10:07:11 -05:00
Asanka Herath
a750f29cda
_getch() can return '\r' on Windows
2010-05-26 10:38:40 -04:00
Asanka Herath
7b8ebf0efe
Fix return value of w32crypto_bytes() and use correct data types
2010-05-26 10:38:40 -04:00
Love Hornquist Astrand
323ccec648
add support to generate keys
2010-05-26 09:31:23 -05:00
Love Hornquist Astrand
fa5a1cb201
tomcrypt rsa
2010-05-22 13:19:48 -07:00
Love Hornquist Astrand
3c58379590
tomsfastmath version of rsa, keygen missing
2010-05-19 22:29:07 -07:00
Simon Wilkinson
994e8641c0
hcrypto: Don't explicitly include system headers
...
Don't explicitly include system headers in hash.h. These get pulled
in anyway through roken.h, and explicitly including them here makes
compiling hcrypto in the kernel much harder.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-04-29 16:43:48 +02:00
Simon Wilkinson
887993e8b3
Add mutex protection for the fortuna PRNG
...
The fortuna PRNG has an statically held internal state. Prevent
concurrent access to this internal state by adding mutexes around
all of the access classes.
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-04-19 14:26:53 +02:00
Love Hornquist Astrand
d02418be27
windows doesn't have /dev/random
2010-03-21 16:44:30 -07:00
Love Hornquist Astrand
08572822da
use pathp for pathbased file names
2010-03-21 16:07:45 -07:00
Love Hornquist Astrand
408e3420d1
try hard to unset HOME and randfile
2010-03-21 16:06:34 -07:00
Love Hornquist Astrand
c491b59007
pull out unix /dev/random if we cant get users home directory
2010-03-21 11:01:24 -07:00
Love Hornquist Astrand
76122d97c2
Test emptier environment
2010-03-21 10:59:26 -07:00
Love Hornquist Astrand
fc9aff2260
log the source too
2010-03-21 09:41:20 -07:00
Love Hornquist Astrand
3ac7d626c2
log failures
2010-03-21 09:37:42 -07:00