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
Andrew Tridge
6bff49a89d
memset the right length of the {i,o}pad data, memset opad not ipad in the opad case (typo)
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2010-03-18 10:59:51 -07:00
Love Hornquist Astrand
9200bb1738
Wrap <CommonCrypto/CommonDigest.h> with ifdef since it doesn't exists on Tiger
2010-01-08 13:12:44 +01:00
Love Hornquist Astrand
d65ba36a5e
replace exeext too
2010-01-01 13:33:47 +01:00
Love Hornquist Astrand
dd04b1d7ba
make DES_is_weak_key ct
2010-01-01 13:08:04 +01:00
Love Hornquist Astrand
212a3ea09a
test weak keys
2010-01-01 13:07:20 +01:00
Love Hornquist Astrand
02e980612e
make #ifdef positive, add comments
2009-12-24 07:19:49 +01:00
Love Hornquist Astrand
08d12ee6e0
implement RAND_pseudorand for the w32 provider in terms of w32crypto_bytes
2009-12-24 07:13:15 +01:00
Asanka Herath
e5ee3e7d60
Merge commit 'lha/master' into win32-port2
...
* commit 'lha/master':
glue for strsvisx
add Allan McRae and Victor Guerra, sort
Version Heimdal 1.3.2
Remove fd caching since we don't have unload (deconstructor) support
2009-12-01 16:58:05 -05:00
Love Hornquist Astrand
26e5159572
Remove fd caching since we don't have unload (deconstructor) support
...
basiclly this is reverting 164c99a4b4
the problem is when an application is using PAM loaded and unloaded
and over again, the file descriptior never get closed on unload of the
pam module. If main app already uses Heimdal, Heimdal doesn't get
unloaded, but in some scenarios this happen more often.
Since we now use fortuna for our internal random generator, this is
not that bad.
Bug found by Victor Guerra.
2009-11-26 10:06:22 -08:00
Asanka Herath
49d28d3f3a
Thread safety for rand-w32
2009-11-26 01:39:42 -05:00
Asanka Herath
e3882ffc62
(lib/hcrypto) Make w32crypto the default and only RAND method on Windows
2009-11-26 01:38:43 -05:00
Asanka Herath
4d923e766c
(lib/hcrypto) Add missing header files and update exports list
2009-11-25 12:43:13 -05:00
Love Hornquist Astrand
c8fc15de86
random number from windows csp
2009-11-25 07:52:39 -08:00
Asanka Herath
c4b95f7330
Make build on windows
...
Signed-off-by: Love Hornquist Astrand <lha@h5l.org >
2009-11-25 02:22:31 +01:00
Love Hornquist Astrand
c6bbdb545b
First drop of Windows build infrastructure from Secure Endpoints
2009-11-24 12:12:53 -08:00
Love Hornquist Astrand
b9bb21f185
just return if we are asked for 0 bytes
2009-11-22 12:51:23 -08:00
Love Hornquist Astrand
2454e93c62
fix typo
2009-11-22 12:51:02 -08:00
Love Hornquist Astrand
2f2063198f
update (c)
2009-11-22 12:50:39 -08:00
Love Hornquist Astrand
2ac04069b6
If the context already have a EVP_MD_CTX allocated, don't make a new
...
Patch from Derrick Pallas of Riverbed Techology
2009-10-16 16:40:49 -07:00
Love Hornquist Astrand
2064ee1a37
Wrap rc2 with COMMONCRYPTO_SUPPORTS_RC2 since its not suported on Leopard
2009-09-29 13:21:16 -07:00
Love Hornquist Astrand
ec263fc5a4
reading negative size is wrong, zero is ok
2009-09-25 14:53:31 -07:00
Love Hornquist Astrand
b0e2117322
Add missing symbols and fix malformed symbols
...
Build failure reported by Rok Papež on heimdal-discuss
2009-09-19 12:26:52 -07:00
Love Hornquist Astrand
7e1e9dc2e7
drop cts support
2009-08-25 20:28:33 -07:00
Love Hornquist Astrand
a1aa022f8b
drop evp-aes-cts
2009-08-25 20:27:04 -07:00
Love Hornquist Astrand
a4d850a656
don't include evp-aes-cts.c
2009-08-25 20:26:38 -07:00
Love Hornquist Astrand
eb7448156c
export d2i_RSAPublicKey
2009-08-21 21:42:03 -07:00
Love Hornquist Astrand
9f5d22b98a
define and use d2i_RSAPublicKey
2009-08-21 18:57:09 -07:00