Love Hörnquist Åstrand
f84997825f
(BN_uadd): Add.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16520 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 08:34:55 +00:00
Love Hörnquist Åstrand
670afff8cf
(BN_rand): don't leak memory on failure, cache malloc(0) case
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16519 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 08:33:58 +00:00
Love Hörnquist Åstrand
0e63038199
(BN_rand): clear the bits above the bits that user requested.
...
(BN_uadd): new function.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16518 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-11 08:29:32 +00:00
Love Hörnquist Åstrand
f9cb9785b3
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16514 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 12:22:15 +00:00
Love Hörnquist Åstrand
1a5d249082
(EVP_CIPHER_CTX_cleanup): clean up less aggressively
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16513 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 12:22:03 +00:00
Love Hörnquist Åstrand
4aa87b6a5e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16512 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 05:50:37 +00:00
Love Hörnquist Åstrand
04972f2f5b
(check_PROGRAMS): add test_hmac
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16511 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 05:49:38 +00:00
Love Hörnquist Åstrand
a83755aac8
Simple regression test for HMAC.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16510 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 05:48:43 +00:00
Love Hörnquist Åstrand
bac186a757
Make hmac work.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16509 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 05:47:45 +00:00
Love Hörnquist Åstrand
cf6b056888
return the right blocksize for digests.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16508 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-10 05:46:59 +00:00
Love Hörnquist Åstrand
eda77a82ab
Add test for DH.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16497 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-09 15:24:14 +00:00
Love Hörnquist Åstrand
9c8236b25e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16496 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:24:38 +00:00
Love Hörnquist Åstrand
5140fde4df
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16495 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:23:09 +00:00
Love Hörnquist Åstrand
018ec753ff
Add DH_new_method, add ENGINE refcounting.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16494 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:22:55 +00:00
Love Hörnquist Åstrand
f79e06f081
Add ENGINE_set_default_DH and ENGINE_get_default_DH
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16493 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:20:59 +00:00
Love Hörnquist Åstrand
1b15095bd7
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16492 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:09:30 +00:00
Love Hörnquist Åstrand
f18d723991
Add test for RSA encryption.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16491 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 23:09:07 +00:00
Love Hörnquist Åstrand
e1c122af2b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16490 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:59:40 +00:00
Love Hörnquist Åstrand
2452ddfd39
Add test for RSA.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16489 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 22:52:54 +00:00
Love Hörnquist Åstrand
6fffde6387
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16481 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:50:18 +00:00
Love Hörnquist Åstrand
b8d967ede5
implement enough glue to support OpenSSLs EVP, RSA, DSA, DH, HMAC and ENGINE interfaces for use in hx509. rename all symbols to start with hc_ to avoid clobbering namespaces. contains no RSA/DH/DSA code, just glue to support using dynamic ENGINE. hx509 supports this via pkcs11 and there is a gmp ENGINE module supporting RSA
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16480 ec53bebd-3082-4978-b11e-865c3cabbd6b
2006-01-08 21:47:29 +00:00
Love Hörnquist Åstrand
86da9d4b0b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15687 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-20 10:49:52 +00:00
Love Hörnquist Åstrand
f871c8a84d
change unsigned char * to void *
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15686 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-07-20 10:49:24 +00:00
Love Hörnquist Åstrand
3fe2a9b92f
const poision for unwriteable strings
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15528 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-29 22:28:10 +00:00
Love Hörnquist Åstrand
50039def7d
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15496 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-18 22:49:24 +00:00
Love Hörnquist Åstrand
6f1fa16431
Rename parameter, as encrypt shadows a global, from Andrew Bartlett
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15495 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-18 22:47:33 +00:00
Love Hörnquist Åstrand
3a721fe1b5
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15400 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-16 15:17:57 +00:00
Love Hörnquist Åstrand
1e11681354
Include <stdlib.h> for srandom/random.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15339 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-06-02 07:18:50 +00:00
Love Hörnquist Åstrand
96ce379f6b
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15279 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 17:19:08 +00:00
Love Hörnquist Åstrand
684d47ce7a
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15271 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 16:15:57 +00:00
Love Hörnquist Åstrand
806ee4c961
(DES_cbc_cksum): init u to make sure it have a value in case of the
...
empty in data
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15270 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 16:15:44 +00:00
Love Hörnquist Åstrand
838fb1ed38
add test for the empty password ""
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15269 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-29 16:14:38 +00:00
Love Hörnquist Åstrand
a68cecf9a9
(cipher3): used unsigned char to avoid problems with platforms using
...
"signed char"
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15248 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-27 13:50:05 +00:00
Love Hörnquist Åstrand
b21b5c89b5
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15135 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-13 08:05:21 +00:00
Love Hörnquist Åstrand
c2d9c8331b
use unsigned char to avoid signess warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15134 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-13 08:04:51 +00:00
Love Hörnquist Åstrand
136b3dc3cd
(AES_cbc_encrypt): use unsigned char to avoid signess warning
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15133 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-13 08:00:09 +00:00
Love Hörnquist Åstrand
934265babf
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15080 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-04 09:47:19 +00:00
Love Hörnquist Åstrand
320c1146ba
Fix typo for HAVE_STDLIB_H.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15079 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-04 09:47:00 +00:00
Love Hörnquist Åstrand
8569adb182
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15076 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-03 17:03:31 +00:00
Love Hörnquist Åstrand
614d774dc6
Enabled to build on cygwin, based on patch from David Love <fx@gnu.org>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15075 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-03 17:02:23 +00:00
Love Hörnquist Åstrand
40fd46885a
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15049 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-02 13:52:39 +00:00
Love Hörnquist Åstrand
a0e1575ec1
Include <krb5-types.h>.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15046 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-05-02 13:48:21 +00:00
Love Hörnquist Åstrand
182ae6f388
Include <des.h>.
...
(UI_UTIL_read_pw_string): make the prompt argument const.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15024 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 14:10:18 +00:00
Love Hörnquist Åstrand
76eb075fc5
(UI_UTIL_read_pw_string): make the prompt argument const
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15023 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 14:09:50 +00:00
Love Hörnquist Åstrand
71a8c91eae
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15022 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 13:57:41 +00:00
Love Hörnquist Åstrand
a4f2e9fda6
(UI_UTIL_read_pw_string): remove unused variable plen
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15021 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 13:56:58 +00:00
Love Hörnquist Åstrand
ee21d416f1
replace <strings.h> with <string.h>
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15020 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-30 13:55:36 +00:00
Love Hörnquist Åstrand
b7ac5caa3e
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15007 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-29 10:59:42 +00:00
Love Hörnquist Åstrand
f33075bfb4
Add LIB_roken.
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15006 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-29 10:59:24 +00:00
Love Hörnquist Åstrand
8f37ffa42f
x
...
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14978 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-04-27 11:59:32 +00:00