Commit Graph

3916 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
520edeaf90 reset outdata
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23667 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:38 +00:00
Love Hörnquist Åstrand
46158df0d7 use the right database to get the error from.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23666 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-25 02:31:28 +00:00
Love Hörnquist Åstrand
300642ca29 new functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23657 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-22 21:18:29 +00:00
Love Hörnquist Åstrand
27e06ef268 Pick out header and trailer first before treating data and sign_only data.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23655 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:53 +00:00
Love Hörnquist Åstrand
0f18ec866a fix iov useage, check length and padding buffer
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23654 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:35 +00:00
Love Hörnquist Åstrand
5ad47f2f66 * XXX CTS EVP is broken, can't handle multi buffers :(
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23653 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:27 +00:00
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
8ef17f5306 test encryption and decryption.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23651 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:25:00 +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
4e73040133 drop len from krb5_crypto_length()
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23649 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:38 +00:00
Love Hörnquist Åstrand
3653a323fb update comments
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23648 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:29 +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
ffa4cfde5e test krb5_decrypt_iov_ivec
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23646 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:24:07 +00:00
Love Hörnquist Åstrand
f258e5136e Add krb5_crypto_iov
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23645 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-21 21:23:57 +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
0ef01719fe add krb5_enctype_enable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23637 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-18 20:15:41 +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
fd7caae377 define HC_DEPRECATED_CRYPTO
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23613 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:57:05 +00:00
Love Hörnquist Åstrand
eeab965755 include <sqlite3.h> instead of "sqlite3.h"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23609 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:56:32 +00:00
Love Hörnquist Åstrand
f2a286081e pick up sqlite from variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23607 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 15:56:18 +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
aa3cf96645 add [libdefaults]allow_weak_crypto to allow des
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23590 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:56 +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
b5e0b4121e deprecated functions
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23586 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:09:11 +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
67bb81a885 enable crypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:16 +00:00
Love Hörnquist Åstrand
1a14adc125 enable crypto
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23581 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-17 14:08:07 +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
7d80d78c9c Moved cts test to hcrypto.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23567 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:04:18 +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
b10c376602 pull in hcrypto/evp-aes-cts.c if we use openssl
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23562 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 23:03:20 +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
9efa43473c If we change the error code, change the context error code too.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-16 22:59:36 +00:00
Love Hörnquist Åstrand
4384fb0209 use SOCK_CLOEXEC
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23517 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:01:38 +00:00
Love Hörnquist Åstrand
734a7cdf4f return whatever krb5_copy_data returnd
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23507 ec53bebd-3082-4978-b11e-865c3cabbd6b
2008-08-11 10:00:33 +00:00