Commit Graph

195 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
fd4fa6e543 remove krb5_encrypt_ivec_new now that we have new sample code
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23652 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:14 +00:00
Love Hörnquist Åstrand
72157cd54f drop len from krb5_crypto_length()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23650 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:52 +00:00
Love Hörnquist Åstrand
085315cad3 krb5_{encrypt,decrypt}_iov_ivec for derived crypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23647 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:21 +00:00
Love Hörnquist Åstrand
2b1fadb026 Dummy krb5_enctype_iov and friends.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23644 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-19 11:51:20 +00:00
Love Hörnquist Åstrand
470c89676a switch last MD5 to EVP
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23620 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 13:49:57 +00:00
Love Hörnquist Åstrand
80f534b1be remove HMAC_MD5_checksum_enc, it was never used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23619 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 13:49:40 +00:00
Love Hörnquist Åstrand
969f6d3c69 remove unused debug code that haven't been used in yeras
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23618 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 13:49:19 +00:00
Love Hörnquist Åstrand
9a9febbd62 remove unused
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23617 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 16:09:39 +00:00
Love Hörnquist Åstrand
440bdde5ff switch des3 to evp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23616 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 16:09:26 +00:00
Love Hörnquist Åstrand
2b3730b46c allow optionally to drop weak enctypes and unstandard enctypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23604 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:47:13 +00:00
Love Hörnquist Åstrand
6872e73f4d Play games to move make make-proto not see this EVP_hcrypto_aes.
Disable DES.
Add krb5_enctype_enable().

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23589 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:45 +00:00
Love Hörnquist Åstrand
826a7369a3 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:03 +00:00
Love Hörnquist Åstrand
0cbaf39afc move to group crypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23584 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:49 +00:00
Love Hörnquist Åstrand
3669790e99 add krb5_enctype_enable and some doxygen
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:32 +00:00
Love Hörnquist Åstrand
1c9741f328 The PRF slightly more generic
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23578 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:07:40 +00:00
Love Hörnquist Åstrand
f6d7055a49 Pass down EVP_CIPHER to key schedule and clean up.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:07:21 +00:00
Love Hörnquist Åstrand
ed463c5e96 switch aes and des-cbc-{crc,md4,md5} to evp
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23576 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:07:09 +00:00
Love Hörnquist Åstrand
879ac0a824 remove #if 0 debug stuff that haven't been used for a couple of years
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:54 +00:00
Love Hörnquist Åstrand
7cc56b554f use EVP for des-crc-mdX functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23574 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:37 +00:00
Love Hörnquist Åstrand
bf83b84842 More EVP.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23573 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:24 +00:00
Love Hörnquist Åstrand
b0b2802cb1 More EVP.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23572 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:06:10 +00:00
Love Hörnquist Åstrand
7260146234 Only clean keys that had their schedule setup.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23568 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:34 +00:00
Love Hörnquist Åstrand
65e525ce2e cleanup of crypto context, for encryptes that needs to do malloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23566 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:09 +00:00
Love Hörnquist Åstrand
634dfaf5f3 _krb5_aes_cts_encrypt no longer used.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:03:56 +00:00
Love Hörnquist Åstrand
0a0d731350 Start switch to EVP digest.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:03:42 +00:00
Love Hörnquist Åstrand
72d753aec4 Use EVP for AES
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23558 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:02:40 +00:00
Love Hörnquist Åstrand
7b5981996c sprinle O_CLOEXEC, from Andrew Bartlett
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23474 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-28 08:49:43 +00:00
Love Hörnquist Åstrand
b227a5249d close-on-exec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23454 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-27 12:11:44 +00:00
Love Hörnquist Åstrand
1dd872ca5c Allow numbers to be enctypes to as long as they are valid.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23378 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-07-24 20:02:19 +00:00
Love Hörnquist Åstrand
d23858caf2 Use krb5_set_error_message(), drop unused functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23278 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-23 03:25:46 +00:00
Love Hörnquist Åstrand
b127d90367 use offset to go over the array.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23237 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-01 22:26:24 +00:00
Love Hörnquist Åstrand
e9662cad42 Use wind_utf8ucs2_length to convert the password to utf16.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23236 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-06-01 22:26:08 +00:00
Love Hörnquist Åstrand
af065bb9b8 Use DES_set_key_unchecked().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23142 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-29 05:47:08 +00:00
Love Hörnquist Åstrand
cc1564ec41 use struct for AlgorithmIdentifier.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22946 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-10 09:47:23 +00:00
Love Hörnquist Åstrand
8e6f72fb92 Check kdf params. calculate the second half of the key.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22939 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-09 13:07:24 +00:00
Love Hörnquist Åstrand
b0bd2f7866 (_krb5_pk_kdf): Check that is sha1 we are using.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22936 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-09 13:07:10 +00:00
Love Hörnquist Åstrand
bf33685d7e Complete _krb5_pk_kdf.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22928 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-09 13:06:35 +00:00
Love Hörnquist Åstrand
05422a8a8a First version of KDF in draft-ietf-krb-wg-pkinit-alg-agility-03.txt.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22926 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-09 13:06:25 +00:00
Love Hörnquist Åstrand
880d4d84f6 Use unsigned where appropriate.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22864 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-04-07 18:50:03 +00:00
Love Hörnquist Åstrand
affe01bf0c revert previous patch, the problem is located in the RAND_file_name()
function that will cause recursive nss lookups, can't fix that here.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22200 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 13:48:01 +00:00
Love Hörnquist Åstrand
08e19e862a (krb5_generate_random_block): try to avoid the dead-lock in by not
holding the lock while running RAND_file_name. From Hai Zaar.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22193 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-12-07 02:16:01 +00:00
Love Hörnquist Åstrand
5fed824f37 its vs it\'s etc. From Bjorn Sandell
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-11-14 20:04:50 +00:00
Love Hörnquist Åstrand
03ad70ea52 (krb5_enctype_to_string): make sure string is NULL on failure.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21947 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-10-04 07:55:54 +00:00
Love Hörnquist Åstrand
777869d68e Check return values from alloc functions. Prompted by patch of Charles Longeau.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21737 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-07-31 15:49:35 +00:00
Love Hörnquist Åstrand
5bb7b3bc79 (decrypt_internal_derived): make sure length is longer then confounder
+ checksum.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21130 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-18 20:45:21 +00:00
Love Hörnquist Åstrand
bf02504f31 Require the raw key have the correct size and do away with the
minsize.  Minsize was a thing that originated from RC2, but since RC2
is done in the x509/cms subsystem now there is no need to keep that
around.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20981 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-06-07 20:05:50 +00:00
Love Hörnquist Åstrand
5e5c20fe90 (krb5_crypto_overhead): return static overhead of encryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20683 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-05-16 18:28:27 +00:00
Love Hörnquist Åstrand
169143c4ff Always use the RAND_ interface now that hcrypto provides it.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20062 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-30 18:02:21 +00:00
Love Hörnquist Åstrand
57d6ff40d8 Add Kerberos RFC 3961 PRF functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20041 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-23 20:37:12 +00:00
Love Hörnquist Åstrand
adca139b8a macro kcrypto_oid_enc now longer used
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@19833 ec53bebd-3082-4978-b11e-865c3cabbd6b
2007-01-11 08:43:13 +00:00