diff options
Diffstat (limited to 'src/lib/libcrypto/des')
-rw-r--r-- | src/lib/libcrypto/des/FILES | 96 | ||||
-rw-r--r-- | src/lib/libcrypto/des/Makefile.ssl | 140 |
2 files changed, 236 insertions, 0 deletions
diff --git a/src/lib/libcrypto/des/FILES b/src/lib/libcrypto/des/FILES new file mode 100644 index 0000000000..4c7ea2de7a --- /dev/null +++ b/src/lib/libcrypto/des/FILES | |||
@@ -0,0 +1,96 @@ | |||
1 | /* General stuff */ | ||
2 | COPYRIGHT - Copyright info. | ||
3 | MODES.DES - A description of the features of the different modes of DES. | ||
4 | FILES - This file. | ||
5 | INSTALL - How to make things compile. | ||
6 | Imakefile - For use with kerberos. | ||
7 | README - What this package is. | ||
8 | VERSION - Which version this is and what was changed. | ||
9 | KERBEROS - Kerberos version 4 notes. | ||
10 | Makefile.PL - An old makefile to build with perl5, not current. | ||
11 | Makefile.ssl - The SSLeay makefile | ||
12 | Makefile.uni - The normal unix makefile. | ||
13 | GNUmakefile - The makefile for use with glibc. | ||
14 | makefile.bc - A Borland C makefile | ||
15 | times - Some outputs from 'speed' on some machines. | ||
16 | vms.com - For use when compiling under VMS | ||
17 | |||
18 | /* My SunOS des(1) replacement */ | ||
19 | des.c - des(1) source code. | ||
20 | des.man - des(1) manual. | ||
21 | |||
22 | /* Testing and timing programs. */ | ||
23 | destest.c - Source for libdes.a test program. | ||
24 | speed.c - Source for libdes.a timing program. | ||
25 | rpw.c - Source for libdes.a testing password reading routines. | ||
26 | |||
27 | /* libdes.a source code */ | ||
28 | des_crypt.man - libdes.a manual page. | ||
29 | des.h - Public libdes.a header file. | ||
30 | ecb_enc.c - des_ecb_encrypt() source, this contains the basic DES code. | ||
31 | ecb3_enc.c - des_ecb3_encrypt() source. | ||
32 | cbc_ckm.c - des_cbc_cksum() source. | ||
33 | cbc_enc.c - des_cbc_encrypt() source. | ||
34 | ncbc_enc.c - des_cbc_encrypt() that is 'normal' in that it copies | ||
35 | the new iv values back in the passed iv vector. | ||
36 | ede_enc.c - des_ede3_cbc_encrypt() cbc mode des using triple DES. | ||
37 | cbc3_enc.c - des_3cbc_encrypt() source, don't use this function. | ||
38 | cfb_enc.c - des_cfb_encrypt() source. | ||
39 | cfb64enc.c - des_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
40 | used as a stream cipher. | ||
41 | cfb64ede.c - des_ede3_cfb64_encrypt() cfb in 64 bit mode but setup to be | ||
42 | used as a stream cipher and using triple DES. | ||
43 | ofb_enc.c - des_cfb_encrypt() source. | ||
44 | ofb64_enc.c - des_ofb_encrypt() ofb in 64 bit mode but setup to be | ||
45 | used as a stream cipher. | ||
46 | ofb64ede.c - des_ede3_ofb64_encrypt() ofb in 64 bit mode but setup to be | ||
47 | used as a stream cipher and using triple DES. | ||
48 | enc_read.c - des_enc_read() source. | ||
49 | enc_writ.c - des_enc_write() source. | ||
50 | pcbc_enc.c - des_pcbc_encrypt() source. | ||
51 | qud_cksm.c - quad_cksum() source. | ||
52 | rand_key.c - des_random_key() source. | ||
53 | read_pwd.c - Source for des_read_password() plus related functions. | ||
54 | set_key.c - Source for des_set_key(). | ||
55 | str2key.c - Covert a string of any length into a key. | ||
56 | fcrypt.c - A small, fast version of crypt(3). | ||
57 | des_locl.h - Internal libdes.a header file. | ||
58 | podd.h - Odd parity tables - used in des_set_key(). | ||
59 | sk.h - Lookup tables used in des_set_key(). | ||
60 | spr.h - What is left of the S tables - used in ecb_encrypt(). | ||
61 | des_ver.h - header file for the external definition of the | ||
62 | version string. | ||
63 | des.doc - SSLeay documentation for the library. | ||
64 | |||
65 | /* The perl scripts - you can ignore these files they are only | ||
66 | * included for the curious */ | ||
67 | des.pl - des in perl anyone? des_set_key and des_ecb_encrypt | ||
68 | both done in a perl library. | ||
69 | testdes.pl - Testing program for des.pl | ||
70 | doIP - Perl script used to develop IP xor/shift code. | ||
71 | doPC1 - Perl script used to develop PC1 xor/shift code. | ||
72 | doPC2 - Generates sk.h. | ||
73 | PC1 - Output of doPC1 should be the same as output from PC1. | ||
74 | PC2 - used in development of doPC2. | ||
75 | shifts.pl - Perl library used by my perl scripts. | ||
76 | |||
77 | /* I started making a perl5 dynamic library for libdes | ||
78 | * but did not fully finish, these files are part of that effort. */ | ||
79 | DES.pm | ||
80 | DES.pod | ||
81 | DES.xs | ||
82 | t | ||
83 | typemap | ||
84 | |||
85 | /* The following are for use with sun RPC implementaions. */ | ||
86 | rpc_des.h | ||
87 | rpc_enc.c | ||
88 | |||
89 | /* The following are contibuted by Mark Murray <mark@grondar.za>. They | ||
90 | * are not normally built into libdes due to machine specific routines | ||
91 | * contained in them. They are for use in the most recent incarnation of | ||
92 | * export kerberos v 4 (eBones). */ | ||
93 | supp.c | ||
94 | new_rkey.c | ||
95 | |||
96 | |||
diff --git a/src/lib/libcrypto/des/Makefile.ssl b/src/lib/libcrypto/des/Makefile.ssl new file mode 100644 index 0000000000..78b5189ee3 --- /dev/null +++ b/src/lib/libcrypto/des/Makefile.ssl | |||
@@ -0,0 +1,140 @@ | |||
1 | # | ||
2 | # SSLeay/crypto/des/Makefile | ||
3 | # | ||
4 | |||
5 | DIR= des | ||
6 | TOP= ../.. | ||
7 | CC= cc | ||
8 | CPP= $(CC) -E | ||
9 | INCLUDES= | ||
10 | CFLAG=-g | ||
11 | INSTALLTOP=/usr/local/ssl | ||
12 | MAKE= make -f Makefile.ssl | ||
13 | MAKEDEPEND= makedepend -f Makefile.ssl | ||
14 | MAKEFILE= Makefile.ssl | ||
15 | AR= ar r | ||
16 | DES_ENC= des_enc.o fcrypt_b.o | ||
17 | # or use | ||
18 | #DES_ENC= dx86-elf.o yx86-elf.o | ||
19 | |||
20 | CFLAGS= $(INCLUDES) $(CFLAG) | ||
21 | |||
22 | GENERAL=Makefile des.org des_locl.org | ||
23 | TEST=destest.c | ||
24 | APPS= | ||
25 | |||
26 | LIB=$(TOP)/libcrypto.a | ||
27 | LIBSRC= cbc_cksm.c cbc_enc.c cfb64enc.c cfb_enc.c \ | ||
28 | ecb3_enc.c ecb_enc.c enc_read.c enc_writ.c \ | ||
29 | fcrypt.c ofb64enc.c ofb_enc.c pcbc_enc.c \ | ||
30 | qud_cksm.c rand_key.c read_pwd.c rpc_enc.c set_key.c \ | ||
31 | des_enc.c fcrypt_b.c read2pwd.c \ | ||
32 | fcrypt.c xcbc_enc.c \ | ||
33 | str2key.c cfb64ede.c ofb64ede.c supp.c | ||
34 | |||
35 | LIBOBJ= set_key.o ecb_enc.o cbc_enc.o \ | ||
36 | ecb3_enc.o cfb64enc.o cfb64ede.o cfb_enc.o ofb64ede.o \ | ||
37 | enc_read.o enc_writ.o ofb64enc.o \ | ||
38 | ofb_enc.o str2key.o pcbc_enc.o qud_cksm.o rand_key.o \ | ||
39 | ${DES_ENC} read2pwd.o \ | ||
40 | fcrypt.o xcbc_enc.o read_pwd.o rpc_enc.o cbc_cksm.o supp.o | ||
41 | |||
42 | SRC= $(LIBSRC) | ||
43 | |||
44 | EXHEADER= des.h | ||
45 | HEADER= des_locl.h rpc_des.h podd.h sk.h spr.h des_ver.h $(EXHEADER) | ||
46 | |||
47 | ALL= $(GENERAL) $(SRC) $(HEADER) | ||
48 | |||
49 | top: | ||
50 | (cd ../..; $(MAKE) DIRS=crypto SDIRS=$(DIR) sub_all) | ||
51 | |||
52 | all: lib | ||
53 | |||
54 | lib: $(LIBOBJ) | ||
55 | $(AR) $(LIB) $(LIBOBJ) | ||
56 | sh $(TOP)/util/ranlib.sh $(LIB) | ||
57 | @touch lib | ||
58 | |||
59 | # elf | ||
60 | asm/dx86-elf.o: asm/dx86unix.cpp | ||
61 | $(CPP) -DELF asm/dx86unix.cpp | as -o asm/dx86-elf.o | ||
62 | |||
63 | asm/yx86-elf.o: asm/yx86unix.cpp | ||
64 | $(CPP) -DELF asm/yx86unix.cpp | as -o asm/yx86-elf.o | ||
65 | |||
66 | # solaris | ||
67 | asm/dx86-sol.o: asm/dx86unix.cpp | ||
68 | $(CC) -E -DSOL asm/dx86unix.cpp | sed 's/^#.*//' > asm/dx86-sol.s | ||
69 | as -o asm/dx86-sol.o asm/dx86-sol.s | ||
70 | rm -f asm/dx86-sol.s | ||
71 | |||
72 | asm/yx86-sol.o: asm/yx86unix.cpp | ||
73 | $(CC) -E -DSOL asm/yx86unix.cpp | sed 's/^#.*//' > asm/yx86-sol.s | ||
74 | as -o asm/yx86-sol.o asm/yx86-sol.s | ||
75 | rm -f asm/yx86-sol.s | ||
76 | |||
77 | # a.out | ||
78 | asm/dx86-out.o: asm/dx86unix.cpp | ||
79 | $(CPP) -DOUT asm/dx86unix.cpp | as -o asm/dx86-out.o | ||
80 | |||
81 | asm/yx86-out.o: asm/yx86unix.cpp | ||
82 | $(CPP) -DOUT asm/yx86unix.cpp | as -o asm/yx86-out.o | ||
83 | |||
84 | # bsdi | ||
85 | asm/dx86bsdi.o: asm/dx86unix.cpp | ||
86 | $(CPP) -DBSDI asm/dx86unix.cpp | as -o asm/dx86bsdi.o | ||
87 | |||
88 | asm/yx86bsdi.o: asm/yx86unix.cpp | ||
89 | $(CPP) -DBSDI asm/yx86unix.cpp | as -o asm/yx86bsdi.o | ||
90 | |||
91 | asm/dx86unix.cpp: | ||
92 | (cd asm; perl des-586.pl cpp >dx86unix.cpp) | ||
93 | |||
94 | asm/yx86unix.cpp: | ||
95 | (cd asm; perl crypt586.pl cpp >yx86unix.cpp) | ||
96 | |||
97 | files: | ||
98 | perl $(TOP)/util/files.pl Makefile.ssl >> $(TOP)/MINFO | ||
99 | |||
100 | links: | ||
101 | /bin/rm -f Makefile | ||
102 | $(TOP)/util/point.sh Makefile.ssl Makefile | ||
103 | /bin/rm -f des.doc | ||
104 | /bin/rm -fr asm/perlasm | ||
105 | $(TOP)/util/point.sh ../../perlasm asm/perlasm | ||
106 | $(TOP)/util/point.sh ../../doc/des.doc des.doc | ||
107 | $(TOP)/util/mklink.sh ../../include $(EXHEADER) | ||
108 | $(TOP)/util/mklink.sh ../../test $(TEST) | ||
109 | $(TOP)/util/mklink.sh ../../apps $(APPS) | ||
110 | |||
111 | install: installs | ||
112 | |||
113 | installs: | ||
114 | @for i in $(EXHEADER) ; \ | ||
115 | do \ | ||
116 | (cp $$i $(INSTALLTOP)/include/$$i; \ | ||
117 | chmod 644 $(INSTALLTOP)/include/$$i ); \ | ||
118 | done; | ||
119 | |||
120 | tags: | ||
121 | ctags $(SRC) | ||
122 | |||
123 | tests: | ||
124 | |||
125 | lint: | ||
126 | lint -DLINT $(INCLUDES) $(SRC)>fluff | ||
127 | |||
128 | depend: | ||
129 | $(MAKEDEPEND) $(INCLUDES) $(PROGS) $(LIBSRC) | ||
130 | |||
131 | dclean: | ||
132 | perl -pe 'if (/^# DO NOT DELETE THIS LINE/) {print; exit(0);}' $(MAKEFILE) >Makefile.new | ||
133 | mv -f Makefile.new $(MAKEFILE) | ||
134 | |||
135 | clean: | ||
136 | /bin/rm -f *.o asm/*.o *.obj lib tags core .pure .nfs* *.old *.bak fluff | ||
137 | |||
138 | errors: | ||
139 | |||
140 | # DO NOT DELETE THIS LINE -- make depend depends on it. | ||