Commit Graph

25 Commits

Author SHA1 Message Date
Simon Wilkinson
67ac841f8f hcrypto: Fix Win 32 cpp checks
The correct test for a windows build is if defined(_WIN32), not just
if _WIN32. Fix a few places in the build which do the wrong thing, as
it gives compiler warnings.
2016-11-09 15:36:04 +00:00
David Mulder
2bee5966ab The evp-w32.h header should not be included on all platforms 2016-08-02 16:12:46 -06:00
Nicolas Williams
490337f4f9 Make OpenSSL an hcrypto backend proper
This adds a new backend for libhcrypto: the OpenSSL backend.

Now libhcrypto has these backends:

 - hcrypto itself (i.e., the algorithms coded in lib/hcrypto)
 - Common Crypto (OS X)
 - PKCS#11 (specifically for Solaris, but not Solaris-specific)
 - Windows CNG (Windows)
 - OpenSSL (generic)

The ./configure --with-openssl=... option no longer disables the use of
hcrypto.  Instead it enables the use of OpenSSL as a (and the default)
backend in libhcrypto.  The libhcrypto framework is now always used.

OpenSSL should no longer be used directly within Heimdal, except in the
OpenSSL hcrypto backend itself, and files where elliptic curve (EC)
crypto is needed.

Because libhcrypto's EC support is incomplete, we can only use OpenSSL
for EC.  Currently that means separating all EC-using code so that it
does not use hcrypto, thus the libhx509/hxtool and PKINIT EC code has
been moved out of the files it used to be in.
2016-04-15 00:16:17 -05:00
Jeffrey Altman
0f97855826 hcrypto: config/roken cleanup
All source files in lib/hcrypto should be built the same way.
Since this source directory is dependent on libroken then all source
files must be built using the roken.h declarations and included headers.

Also, there is no config.h in the local directory so angle brackets
include of quotes should be used.

Finally, because roken.h includes stdio.h, stdlib.h, stdarg.h, limits.h,
strings.h, sys/types.h, etc., do not include them separately.

Start all source files with

  #include <config.h>
  #include <roken.h>

Change-Id: I09ab47f8a5472018efe6c8b59a0e51fde8f24724
2016-04-10 17:05:07 -05:00
Luke Howard
fdf8782db2 hcrypto: PKCS#11 backend
implement a PKCS#11 backend for hcrypto. tested with Solaris 11 and
SoftHSM, this is now the default when building on Solaris.
2015-12-09 11:08:35 +11:00
Luke Howard
5023f55208 Add Windows CNG (BCrypt) support to HCrypto EVP API 2015-02-11 16:00:32 +11:00
Love Hörnquist Åstrand
6d57bb6a4a quiet warnings 2014-02-14 19:26:20 -08:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
91020dd11d add cfb8-aes modes 2010-06-03 17:20:40 -07:00
Love Hornquist Astrand
7e1e9dc2e7 drop cts support 2009-08-25 20:28:33 -07:00
Love Hornquist Astrand
e8fce1170f separate out common crypto vs hcrypto 2009-08-17 10:39:19 +02:00
Love Hornquist Astrand
21e8270aa2 Support RC4 in EVP 2009-08-10 11:48:12 +02:00
Love Hornquist Astrand
8276a469ab Add CommonCrypto support, split out all hcrypto specific code to hcrypto module 2009-08-10 09:07:37 +02:00
Love Hornquist Astrand
3a031244bc Drop RCSID and HAVE_CONFIG_H 2009-08-05 13:37:37 +02:00
Love Hörnquist Åstrand
6937d41a02 remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23815 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 09:21:03 +00:00
Love Hörnquist Åstrand
e172367898 switch to utf8 encoding of all files
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23814 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-09-13 08:53:55 +00:00
Love Hörnquist Åstrand
146c256ee5 define HC_DEPRECATED_CRYPTO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23629 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:14:07 +00:00
Love Hörnquist Åstrand
d9d708753c test evp-aes-cts
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23557 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:02:25 +00:00
Love Hörnquist Åstrand
45f337ec4a unbreak des-test
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23123 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-28 10:30:32 +00:00
Love Hörnquist Åstrand
42a31610b1 Use test from camellia samples.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21923 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-16 14:44:55 +00:00
Love Hörnquist Åstrand
3f3b2c61bc Make camellia-128-cbc tests pass.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21919 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-16 14:37:14 +00:00
Love Hörnquist Åstrand
37868a2976 Sprinkle EVP cipher names.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21829 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-08-07 07:45:59 +00:00
Love Hörnquist Åstrand
015e358ad6 Add --help and --version.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21735 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 02:11:31 +00:00
Love Hörnquist Åstrand
97414f05ca Add Camellia
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-24 16:29:05 +00:00
Love Hörnquist Åstrand
7ba2b2006c rename des to hcrypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20466 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-04-20 08:29:05 +00:00