Commit Graph

480 Commits

Author SHA1 Message Date
Love Hörnquist Åstrand
a2f3d68355 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17186 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-23 20:45:12 +00:00
Love Hörnquist Åstrand
7b95f0b5f2 (RSA_check_key): don't do any checking if there is no private key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17185 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-23 20:45:00 +00:00
Love Hörnquist Åstrand
78ed40ac39 (add_engine): reassign engines variable after realloc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17181 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-23 20:37:03 +00:00
Love Hörnquist Åstrand
a373ad9424 implement EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17141 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:25:43 +00:00
Love Hörnquist Åstrand
26712f7c01 make EVP_BytesToKey return an error
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17137 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:01:44 +00:00
Love Hörnquist Åstrand
22857c96da Add EVP_get_cipherbyname, unbreak EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17136 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 15:01:20 +00:00
Love Hörnquist Åstrand
5c59fc96ca Add prototype for EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17132 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 13:06:45 +00:00
Love Hörnquist Åstrand
67e1f79d36 Add stub for EVP_BytesToKey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17131 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-21 13:06:27 +00:00
Love Hörnquist Åstrand
a1d2bc1334 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17114 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:17:39 +00:00
Love Hörnquist Åstrand
d8e767cb10 Add cpp-rename for DH_check_pubkey
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17112 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-20 18:16:17 +00:00
Love Hörnquist Åstrand
b5bb0fb2b1 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17100 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:24:08 +00:00
Love Hörnquist Åstrand
134300927d Add more RAND functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17099 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:23:04 +00:00
Love Hörnquist Åstrand
0256eb27e6 Split out unix /dev/random to a RAND_METHOD
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17098 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:19:05 +00:00
Love Hörnquist Åstrand
347ebf4079 add RAND support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17097 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:16:17 +00:00
Love Hörnquist Åstrand
1668824ca5 s/rc4_64/rc2_64/
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17096 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 13:14:16 +00:00
Love Hörnquist Åstrand
3a87bd3b39 Use right flags to open(2) when doing reading/writing.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17095 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 12:25:57 +00:00
Love Hörnquist Åstrand
45a1e8c9ef Add RAND_METHOD and some associated functions.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17094 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 12:19:35 +00:00
Love Hörnquist Åstrand
9d126566c5 Test BN_rand
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17093 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-17 12:12:11 +00:00
Love Hörnquist Åstrand
5ce1e2cb21 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17092 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:39:52 +00:00
Love Hörnquist Åstrand
fb47cbf3b2 (ENGINE_by_dso): less printf
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17091 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:39:40 +00:00
Love Hörnquist Åstrand
902f8ff049 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17090 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:38:47 +00:00
Love Hörnquist Åstrand
ff8368d8a7 (i2d_RSAPublicKey): fix prototype
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17089 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-16 19:38:23 +00:00
Love Hörnquist Åstrand
07ac4c2f4c Add EVP_rc2_64_cbc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17085 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 13:13:06 +00:00
Love Hörnquist Åstrand
fe3ab87a5b (libhcrypto_la_SOURCES): Add sha256.c.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17081 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 12:48:12 +00:00
Love Hörnquist Åstrand
8c5526e110 x
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 07:55:50 +00:00
Love Hörnquist Åstrand
2d55449313 Add SHA-256 symbols.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 07:55:33 +00:00
Love Hörnquist Åstrand
406b081aba Add SHA-256.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17074 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 07:54:45 +00:00
Love Hörnquist Åstrand
9ece16629f Add sha-256 symbols.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17073 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 07:54:11 +00:00
Love Hörnquist Åstrand
60536ecb53 Test SHA-256.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17072 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-04-15 07:53:37 +00:00
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