Commit Graph

451 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
2dba3f813b Inital (naive) SHA-256 implementation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17071 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 07:53:07 +00:00
Love Hörnquist Åstrand
604652ed73 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17066 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 14:22:25 +00:00
Love Hörnquist Åstrand
ab8354ee2f (DES_cfb64_encrypt): add asserts that the *num pointers is >= 0,
because if it is, its a programmer error.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17065 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-14 14:19:36 +00:00
Love Hörnquist Åstrand
7faccdb5b9 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-10 17:33:37 +00:00
Love Hörnquist Åstrand
e01da67d58 (RC2_set_key): abort on erroneous input (len <= 0) size that will case
out out bound indexing, and its invalid input.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 17:03:21 +00:00
Love Hörnquist Åstrand
cb07dc716d x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 16:59:17 +00:00
Love Hörnquist Åstrand
517a78550f Make compile again.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-09 16:58:57 +00:00
Love Hörnquist Åstrand
aeeed9cab8 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16974 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:18:50 +00:00
Love Hörnquist Åstrand
49cd3f86ca Implement i2d_RSAPublicKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16973 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:17:30 +00:00
Love Hörnquist Åstrand
b93187f3c7 Add i2d_RSAPublicKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16972 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-03 05:17:01 +00:00
Love Hörnquist Åstrand
2b07dd8731 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16786 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-07 09:28:20 +00:00
Love Hörnquist Åstrand
337cf04f82 EVP interface depends on dlopen, add it to LIBFLAGS
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16785 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-03-07 09:28:00 +00:00
Love Hörnquist Åstrand
cd9b9cb29f x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16778 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:19:48 +00:00
Love Hörnquist Åstrand
152e551c29 Add pkcs5 files.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16777 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:19:00 +00:00
Love Hörnquist Åstrand
3e6b1b43a3 Testcases for pkcs5 pbe2.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16776 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:18:20 +00:00
Love Hörnquist Åstrand
64332f3462 (PKCS5_PBKDF2_HMAC_SHA1): new function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16775 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:17:25 +00:00
Love Hörnquist Åstrand
551b1a36fc Digest key when it exceeds block size, not when it exceeds the size of
the output block.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16774 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-28 14:11:21 +00:00
Love Hörnquist Åstrand
d339f27552 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16750 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-16 10:38:47 +00:00
Love Hörnquist Åstrand
cbe9276ad4 (RAND_bytes): Don't abort() on failure, return error.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16749 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-16 10:11:44 +00:00
Love Hörnquist Åstrand
a2cdaa4cb6 (BN_rand): check return value from RAND_bytes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16747 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-02-16 10:08:34 +00:00
Love Hörnquist Åstrand
4a9f2c14c4 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16594 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 19:17:09 +00:00
Love Hörnquist Åstrand
cb17a3698f (DH_compute_key): check public key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16588 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 15:58:43 +00:00
Love Hörnquist Åstrand
d8e19f9232 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16586 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 13:48:40 +00:00
Love Hörnquist Åstrand
416e8eb727 Add DH_check_pubkey and defines it uses.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 13:48:30 +00:00
Love Hörnquist Åstrand
20200ee319 (DH_check_pubkey): New function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16584 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 13:45:02 +00:00
Love Hörnquist Åstrand
44f875ef5a Remove unused fragment.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16583 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 13:26:08 +00:00
Love Hörnquist Åstrand
3e70d0927b Compare numbers with BN_cmp().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16582 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-18 13:25:31 +00:00
Love Hörnquist Åstrand
03009adb79 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16577 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-17 15:38:59 +00:00
Love Hörnquist Åstrand
106ab5e5cf Include <limits.h>. From David Love <fx@gnu.org>.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16575 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-17 15:34:39 +00:00
Love Hörnquist Åstrand
a3e9be86fc x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16565 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 15:27:12 +00:00
Love Hörnquist Åstrand
9d9dcf58a0 use #include <hcrypto/...>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16564 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 15:26:52 +00:00
Love Hörnquist Åstrand
6358b0c902 provide a symlink so the directory hcrypto/ seems to exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16563 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 15:26:09 +00:00
Love Hörnquist Åstrand
ee86169143 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16551 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 13:33:55 +00:00
Love Hörnquist Åstrand
61a7db8122 Expose dsa symbols
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16550 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 13:33:34 +00:00
Love Hörnquist Åstrand
5df6816433 Rename library to hcrypto and install headerfiles in hcrypto/.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16549 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 13:32:57 +00:00
Love Hörnquist Åstrand
db692e67db x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16545 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:45:16 +00:00
Love Hörnquist Åstrand
bac884b9e6 Test for PKCS12_key_gen.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16543 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:42:49 +00:00
Love Hörnquist Åstrand
194f4b9da5 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16542 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:41:50 +00:00
Love Hörnquist Åstrand
1a95d61630 Drop HMAC_CTX_create and HMAC_CTX_destroy.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16541 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:41:38 +00:00
Love Hörnquist Åstrand
38dd4722c8 (ENGINE_add_conf_module): Also load DH
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16540 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:41:06 +00:00
Love Hörnquist Åstrand
db4f904fbb Reorder includes to avoid compile errors, provide DH_new_method().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16539 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:39:22 +00:00
Love Hörnquist Åstrand
fc22d50a39 Indent.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16538 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:38:26 +00:00
Love Hörnquist Åstrand
33b75d6802 BN_get_negative was really named BN_is_negative, a comment confused me.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16537 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:37:58 +00:00
Love Hörnquist Åstrand
398bb0bf9b BN_get_negative was really named BN_is_negative, a comment confused me.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16536 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:27:50 +00:00
Love Hörnquist Åstrand
3117ec71da Add PKCS12_key_gen().
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16535 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:27:12 +00:00
Love Hörnquist Åstrand
d3eb7dcae5 Add test_cipher, test_pkcs12, add pkcs12.[ch].
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16534 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:26:09 +00:00
Love Hörnquist Åstrand
39e4b9eec1 Test for EVP_CIPHER.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16533 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:25:34 +00:00
Love Hörnquist Åstrand
849dc3cc72 Rename rc2_40_cbc internal variable to something better.
Unbreak des-ede3-cbc.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16532 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-13 08:25:00 +00:00
Love Hörnquist Åstrand
7d37435503 Free memory.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16522 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 08:56:05 +00:00
Love Hörnquist Åstrand
279fbe4766 Test BN_uadd.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16521 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 08:55:24 +00:00