Commit Graph

70 Commits

Author SHA1 Message Date
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
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
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
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
269f9185cd fix prototype for DES_random_key
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14680 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-23 16:16:51 +00:00
Love Hörnquist Åstrand
ce454647a2 move <des.h> to after include <krb5-types.h> so the C99 integer types exists
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14667 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-03-20 16:12:19 +00:00
Love Hörnquist Åstrand
c93c4d1a8b Replace the eay DES code with key scheule setup code by me and DES
s-box and p permutation from Richard Outerbridge implemtation (in
public domain).  The DES modes are implemented by me. ui.c code are
from appl/login.

The implementation is about 3 times slower then Eric for encryption,
and about the same speed for key setup.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14585 ec53bebd-3082-4978-b11e-865c3cabbd6b
2005-02-23 15:29:36 +00:00
Love Hörnquist Åstrand
5d2f79f90c (DES_rand_data): also try /dev/arandom
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14104 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-08-10 11:21:48 +00:00
Love Hörnquist Åstrand
593c89db6e don't include krb4 headers
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13914 ec53bebd-3082-4978-b11e-865c3cabbd6b
2004-06-02 20:10:57 +00:00
Love Hörnquist Åstrand
5e1a097d69 uninitialized variable, from Panasas Inc
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@13194 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-12-07 18:10:48 +00:00
Love Hörnquist Åstrand
49e0243cc5 switch to the DES_ api, dont provide any compat glue
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12748 ec53bebd-3082-4978-b11e-865c3cabbd6b
2003-09-03 09:26:03 +00:00
Assar Westerlund
6e1283cbc2 remove all winsock.h
for now, it does more harm than good under cygwin and if it should be
used, the correct conditional needs to be found
from <tol@stacken.kth.se>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10510 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-08-21 15:32:07 +00:00
Assar Westerlund
bc34c3ec29 (des_not_rand_data): conditionalize on HAVE_SETITIMER
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10197 ec53bebd-3082-4978-b11e-865c3cabbd6b
2001-06-29 14:27:36 +00:00
Johan Danielsson
3ca5f8150f remove advertising clause
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7463 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-12-02 16:58:55 +00:00
Assar Westerlund
0b933ae77c (des_rand_data): move declaration to get rid of warning
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5639 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-19 23:17:13 +00:00
Johan Danielsson
2020265280 (des_rand_data): if not using setitimer, block SIGCHLD around fork(),
also make sure we get the status of the child process
(fake_signal): emulate signal using sigaction


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5543 ec53bebd-3082-4978-b11e-865c3cabbd6b
1999-03-15 16:36:40 +00:00
Björn Groenvall
16e89e5d3d Reinstall SysV signal handler.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4450 ec53bebd-3082-4978-b11e-865c3cabbd6b
1998-02-24 14:26:08 +00:00
Assar Westerlund
cfd9b87ff4 remove a warning about unused variable
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4194 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-12-14 21:58:14 +00:00
Johan Danielsson
c635a62582 Some fixes after merge.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3605 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-10-14 15:52:17 +00:00
Johan Danielsson
b48567eff6 bits.h -> krb5-types.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3396 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-05 18:10:23 +00:00
Assar Westerlund
f1e86c9928 some nextstep support
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3378 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-09-04 02:42:37 +00:00
Assar Westerlund
c434a2dd88 use <bits.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1942 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-06-30 04:10:48 +00:00
Assar Westerlund
c365ea9629 use ktypes.h
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1689 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-05-11 04:08:11 +00:00
Assar Westerlund
7a09bebf55 On windows they've hidden `struct timeval' inside <winsock.h>!
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1608 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-20 14:09:50 +00:00
Assar Westerlund
85ed18dbb3 Use TIME_WITH_SYS_TIME
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1601 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-20 05:51:30 +00:00
Johan Danielsson
e1282e7dfc Update copyright strings.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-04-01 08:19:18 +00:00
Assar Westerlund
9c58be3a22 cygwin32
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1207 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-02-01 20:10:20 +00:00
Assar Westerlund
4cbc2ad669 fixed stupid mistakes
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1188 ec53bebd-3082-4978-b11e-865c3cabbd6b
1997-01-26 19:32:29 +00:00
Assar Westerlund
4fa94f68be more #ifdefs for OS/2. ugck
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1098 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-12-14 20:55:22 +00:00
Björn Groenvall
0bcddc9caf Fix warnings, remove unused variables.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@970 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-11-15 18:39:27 +00:00
Johan Danielsson
c2a79f7814 Spelling.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@899 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-27 16:26:20 +00:00
Björn Groenvall
3e317bb818 Fix copyright.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@893 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-26 16:05:04 +00:00
Assar Westerlund
bb118af7af (sumFile): consider the case that `res' is not longword-aligned.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@842 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-12 12:25:02 +00:00
Johan Danielsson
e7f718fc47 merged in code from d93-jka for WIN32
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@829 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-10-05 00:49:37 +00:00
Assar Westerlund
58cff78eae (des_rand_data): Try /dev/urandom as well.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@757 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-26 17:28:53 +00:00
Assar Westerlund
682884b05a (des_rand_data): Use a table with random devices.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@745 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-15 21:39:23 +00:00
Johan Danielsson
7ee8ca0553 Reap children
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@743 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-15 16:54:01 +00:00
Johan Danielsson
234a5f7a3a Hack for systems that lack setitimer (like crays).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@738 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-14 21:11:14 +00:00
Assar Westerlund
be960824df Made `des_rand_data' non-static.
This function is useful and now even used.


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@726 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-09-14 01:11:13 +00:00
Björn Groenvall
ade9160a68 Also try /dev/rnd for random data.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@644 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-08-12 10:02:20 +00:00
Johan Danielsson
23889c1c74 #include <string.h>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@601 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-06-27 01:11:26 +00:00
Assar Westerlund
5ff8c1b1fc At least `srandom'.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@590 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-06-15 21:23:23 +00:00
Assar Westerlund
b9d5ad4ba5 spelling
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@547 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-30 11:27:42 +00:00
Johan Danielsson
7434b7feef Fix conflicts.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@545 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-29 23:14:17 +00:00
Björn Groenvall
fdae362ba7 Use interval-timer stuff for random generation.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@541 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-24 09:58:43 +00:00
Johan Danielsson
7387c8fdd7 Quick patch for systems that doesn't have setitimer (like UNICOS).
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@534 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-13 01:47:24 +00:00
Assar Westerlund
6961a4a341 Merged in libdes3.21-branch
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@473 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-05-04 04:44:52 +00:00
Björn Groenvall
d8a3c6c198 New function des_generate_random_block(des_cblock *block)
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@355 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-03-28 11:14:16 +00:00
Unknown User d91-jda
6e774b61f7 *** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@330 ec53bebd-3082-4978-b11e-865c3cabbd6b
1996-03-24 06:14:28 +00:00