Commit Graph

30 Commits

Author SHA1 Message Date
Luke Howard
a88d00660e Fix PKCS#11 hcrypto backend regression (#314, #315, #316, #317)
81c778e broke the PKCS#11 hcrypto backend broke for many cases as it did
not support cipherstate resetting. (Prior to 81c778e, which was to fix #194,
the PKCS#11 backend did not support cipherstate chaining across invocations.)

hcrypto backends that maintain cipherstate independently of the hcrypto
context IV field need to set EVP_CIPH_ALWAYS_CALL_INIT to avoid the two
diverging. Their init function should support resetting the cipherstate
independently of key scheduling.
2018-05-11 13:11:31 +10:00
Luke Howard
7b720cf61c krb5: implement draft-ietf-kitten-aes-cts-hmac-sha2-07 2016-10-08 08:17:11 +02: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
Nicolas Williams
0f138cf2d5 Add missing hcrypto rename macros 2016-04-15 00:16:15 -05:00
Love Hornquist Astrand
0879b9831a remove trailing whitespace 2011-05-21 11:57:31 -07:00
Love Hornquist Astrand
b206aeb016 SHA384 2010-09-30 18:22:00 -07:00
Love Hornquist Astrand
b32651c830 SHA512 support 2010-09-29 23:41:15 -07:00
Love Hornquist Astrand
28c80fdf15 validate args before use 2010-09-08 00:04:01 -07:00
Love Hornquist Astrand
91020dd11d add cfb8-aes modes 2010-06-03 17:20:40 -07: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
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 Hörnquist Åstrand
e9cea2daee More tests for HC_DEPRECATED
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@25336 ec53bebd-3082-4978-b11e-865c3cabbd6b
2009-07-16 18:28:24 +00:00
Love Hörnquist Åstrand
3d93ee6cea add EVP_CTRL_RAND_KEY
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23948 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 07:55:49 +00:00
Love Hörnquist Åstrand
97a97a81f9 update(c)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 07:55:39 +00:00
Love Hörnquist Åstrand
8a3bbf5a27 add EVP_CIPHER_CTX_ctrl and EVP_CIPHER_CTX_rand_key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 07:55:28 +00:00
Love Hörnquist Åstrand
bfb9748972 add EVP_CIPH_RAND_KEY and typify ctrl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23944 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-10-19 07:55:05 +00: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
248222b8f6 Tell what buf_len is used for.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23634 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:15:03 +00:00
Love Hörnquist Åstrand
abce4983a7 Add prototypes for EVP_CipherUpdate EVP_CipherFinal_ex
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23623 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:12:44 +00:00
Love Hörnquist Åstrand
2c011371e2 Mark weak crypto as HC_DEPRECATED_CRYPTO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23612 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:56:58 +00:00
Love Hörnquist Åstrand
e8c1f45bf8 add EVP_des_cbc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23592 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:10:15 +00:00
Love Hörnquist Åstrand
754267da67 expose hc_evp_md
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23570 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:52 +00:00
Love Hörnquist Åstrand
814682faba add evp-aes-cts
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23556 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:02:13 +00:00
Love Hörnquist Åstrand
38153d7b7a deprecate functions that are needed for exported EVP_MD_CTX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-29 05:47:04 +00:00
Love Hörnquist Åstrand
72a814727d Internalize hc_EVP_MD_CTX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23139 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-29 05:46:56 +00:00
Love Hörnquist Åstrand
4365c2071c cpp wrappers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22957 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-11 11:33:15 +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