summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/conf/files18
-rw-r--r--sys/crypto/COPYRIGHT (renamed from sys/netinet/libdeslite/COPYRIGHT)0
-rw-r--r--sys/crypto/blf.c (renamed from sys/netinet/ip_blf.c)4
-rw-r--r--sys/crypto/blf.h (renamed from sys/netinet/ip_blf.h)2
-rw-r--r--sys/crypto/cast.c (renamed from sys/netinet/ip_cast.c)6
-rw-r--r--sys/crypto/cast.h (renamed from sys/netinet/ip_cast.h)2
-rw-r--r--sys/crypto/castsb.h (renamed from sys/netinet/ip_castsb.h)2
-rw-r--r--sys/crypto/des.h (renamed from sys/netinet/libdeslite/des.h)2
-rw-r--r--sys/crypto/des_locl.h (renamed from sys/netinet/libdeslite/des_locl.h)2
-rw-r--r--sys/crypto/ecb3_enc.c (renamed from sys/netinet/libdeslite/ecb3_enc.c)2
-rw-r--r--sys/crypto/ecb_enc.c (renamed from sys/netinet/libdeslite/ecb_enc.c)2
-rw-r--r--sys/crypto/podd.h (renamed from sys/netinet/libdeslite/podd.h)2
-rw-r--r--sys/crypto/rmd160.c (renamed from sys/netinet/ip_rmd160.c)4
-rw-r--r--sys/crypto/rmd160.h (renamed from sys/netinet/ip_rmd160.h)2
-rw-r--r--sys/crypto/set_key.c (renamed from sys/netinet/libdeslite/set_key.c)2
-rw-r--r--sys/crypto/sha1.c (renamed from sys/netinet/ip_sha1.c)4
-rw-r--r--sys/crypto/sha1.h (renamed from sys/netinet/ip_sha1.h)2
-rw-r--r--sys/crypto/sk.h (renamed from sys/netinet/libdeslite/sk.h)2
-rw-r--r--sys/crypto/skipjack.c (renamed from sys/netinet/ip_skipjack.c)2
-rw-r--r--sys/crypto/skipjack.h (renamed from sys/netinet/ip_skipjack.h)0
-rw-r--r--sys/crypto/spr.h (renamed from sys/netinet/libdeslite/spr.h)2
-rw-r--r--sys/netinet/ip_ipsp.h12
-rw-r--r--sys/netinet/libdeslite/Makefile40
23 files changed, 38 insertions, 78 deletions
diff --git a/sys/conf/files b/sys/conf/files
index 48200369a7c..40307baf8ce 100644
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -1,4 +1,4 @@
-# $OpenBSD: files,v 1.151 2000/02/07 00:33:03 niklas Exp $
+# $OpenBSD: files,v 1.152 2000/02/28 23:13:06 deraadt Exp $
# $NetBSD: files,v 1.87 1996/05/19 17:17:50 jonathan Exp $
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
@@ -506,14 +506,14 @@ file netinet/ipsec_input.c (inet | inet6) & ipsec
file netinet/ip_xform.c inet & ipsec
file netinet/ip_esp.c inet & ipsec
file netinet/ip_ah.c inet & ipsec
-file netinet/ip_rmd160.c inet & ipsec
-file netinet/ip_sha1.c inet & ipsec
-file netinet/ip_blf.c (inet & ipsec) | uvm_swap_encrypt
-file netinet/ip_cast.c inet & ipsec
-file netinet/ip_skipjack.c inet & ipsec
-file netinet/libdeslite/ecb_enc.c inet & ipsec
-file netinet/libdeslite/set_key.c inet & ipsec
-file netinet/libdeslite/ecb3_enc.c inet & ipsec
+file crypto/rmd160.c (inet & ipsec) | crypto
+file crypto/sha1.c (inet & ipsec) | crypto
+file crypto/blf.c (inet & ipsec) | crypto | uvm_swap_encrypt
+file crypto/cast.c (inet & ipsec) | crypto
+file crypto/skipjack.c (inet & ipsec) | crypto
+file crypto/ecb_enc.c (inet & ipsec) | crypto
+file crypto/set_key.c (inet & ipsec) | crypto
+file crypto/ecb3_enc.c (inet & ipsec) | crypto
file netatalk/aarp.c netatalk
file netatalk/at_control.c netatalk
file netatalk/at_proto.c netatalk
diff --git a/sys/netinet/libdeslite/COPYRIGHT b/sys/crypto/COPYRIGHT
index dc789d4fdce..dc789d4fdce 100644
--- a/sys/netinet/libdeslite/COPYRIGHT
+++ b/sys/crypto/COPYRIGHT
diff --git a/sys/netinet/ip_blf.c b/sys/crypto/blf.c
index feb129d0ec7..b22c8c9dab9 100644
--- a/sys/netinet/ip_blf.c
+++ b/sys/crypto/blf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_blf.c,v 1.6 1999/12/28 13:09:13 provos Exp $ */
+/* $OpenBSD: blf.c,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/*
* Blowfish block cipher for OpenBSD
* Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -42,7 +42,7 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <netinet/ip_blf.h>
+#include <crypto/blf.h>
#undef inline
#ifdef __GNUC__
diff --git a/sys/netinet/ip_blf.h b/sys/crypto/blf.h
index 25d80421e55..90397f1fa3f 100644
--- a/sys/netinet/ip_blf.h
+++ b/sys/crypto/blf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_blf.h,v 1.3 1999/12/28 13:09:13 provos Exp $ */
+/* $OpenBSD: blf.h,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/*
* Blowfish - a fast block cipher designed by Bruce Schneier
*
diff --git a/sys/netinet/ip_cast.c b/sys/crypto/cast.c
index ed4fe63a1b7..9c1804a0ac5 100644
--- a/sys/netinet/ip_cast.c
+++ b/sys/crypto/cast.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_cast.c,v 1.3 1999/02/17 18:09:55 deraadt Exp $ */
+/* $OpenBSD: cast.c,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/*
* CAST-128 in C
* Written by Steve Reid <sreid@sea-to-sky.net>
@@ -7,8 +7,8 @@
*/
#include <sys/types.h>
-#include <netinet/ip_cast.h>
-#include <netinet/ip_castsb.h>
+#include <crypto/cast.h>
+#include <crypto/castsb.h>
/* Macros to access 8-bit bytes out of a 32-bit word */
#define U_INT8_Ta(x) ( (u_int8_t) (x>>24) )
diff --git a/sys/netinet/ip_cast.h b/sys/crypto/cast.h
index e0328affb56..6f6f4520772 100644
--- a/sys/netinet/ip_cast.h
+++ b/sys/crypto/cast.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_cast.h,v 1.3 1999/02/17 18:09:55 deraadt Exp $ */
+/* $OpenBSD: cast.h,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/*
* CAST-128 in C
diff --git a/sys/netinet/ip_castsb.h b/sys/crypto/castsb.h
index 4d5a73bb6b3..0e1fb79623e 100644
--- a/sys/netinet/ip_castsb.h
+++ b/sys/crypto/castsb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_castsb.h,v 1.2 1999/02/17 18:09:55 deraadt Exp $ */
+/* $OpenBSD: castsb.h,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/*
* CAST-128 in C
* Written by Steve Reid <sreid@sea-to-sky.net>
diff --git a/sys/netinet/libdeslite/des.h b/sys/crypto/des.h
index ffcd3c1515d..deb4af651da 100644
--- a/sys/netinet/libdeslite/des.h
+++ b/sys/crypto/des.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: des.h,v 1.3 1997/02/24 14:06:51 niklas Exp $ */
+/* $OpenBSD: des.h,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/* lib/des/des.h */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/libdeslite/des_locl.h b/sys/crypto/des_locl.h
index c220e392588..5dfdb5c5199 100644
--- a/sys/netinet/libdeslite/des_locl.h
+++ b/sys/crypto/des_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: des_locl.h,v 1.3 1997/02/24 14:06:51 niklas Exp $ */
+/* $OpenBSD: des_locl.h,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/* lib/des/des_locl.h */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/libdeslite/ecb3_enc.c b/sys/crypto/ecb3_enc.c
index 4e5772b3753..f20ae89a975 100644
--- a/sys/netinet/libdeslite/ecb3_enc.c
+++ b/sys/crypto/ecb3_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecb3_enc.c,v 1.2 1997/11/07 08:27:28 niklas Exp $ */
+/* $OpenBSD: ecb3_enc.c,v 1.1 2000/02/28 23:13:04 deraadt Exp $ */
/* lib/des/ecb3_enc.c */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/libdeslite/ecb_enc.c b/sys/crypto/ecb_enc.c
index 1b7ce7e6fb8..1a32771533c 100644
--- a/sys/netinet/libdeslite/ecb_enc.c
+++ b/sys/crypto/ecb_enc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ecb_enc.c,v 1.2 1997/02/24 14:06:52 niklas Exp $ */
+/* $OpenBSD: ecb_enc.c,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/* lib/des/ecb_enc.c */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/libdeslite/podd.h b/sys/crypto/podd.h
index e0d61df2e26..7dcb7ad97b4 100644
--- a/sys/netinet/libdeslite/podd.h
+++ b/sys/crypto/podd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: podd.h,v 1.2 1997/02/24 14:06:52 niklas Exp $ */
+/* $OpenBSD: podd.h,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/* lib/des/podd.h */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/ip_rmd160.c b/sys/crypto/rmd160.c
index 7133fede608..822718432f2 100644
--- a/sys/netinet/ip_rmd160.c
+++ b/sys/crypto/rmd160.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_rmd160.c,v 1.5 1998/09/09 22:34:28 janjaap Exp $ */
+/* $OpenBSD: rmd160.c,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/********************************************************************\
*
* FILE: rmd160.c
@@ -21,7 +21,7 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <netinet/ip_rmd160.h>
+#include <crypto/rmd160.h>
/********************************************************************/
diff --git a/sys/netinet/ip_rmd160.h b/sys/crypto/rmd160.h
index 114aed82a3b..21ea097851e 100644
--- a/sys/netinet/ip_rmd160.h
+++ b/sys/crypto/rmd160.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_rmd160.h,v 1.3 1999/02/17 18:10:08 deraadt Exp $ */
+/* $OpenBSD: rmd160.h,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/*
* FILE: rmd160.h
diff --git a/sys/netinet/libdeslite/set_key.c b/sys/crypto/set_key.c
index c62004b5c63..4ecdf8adf6f 100644
--- a/sys/netinet/libdeslite/set_key.c
+++ b/sys/crypto/set_key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: set_key.c,v 1.4 1999/02/19 00:48:20 art Exp $ */
+/* $OpenBSD: set_key.c,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/* lib/des/set_key.c */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/ip_sha1.c b/sys/crypto/sha1.c
index aa832103b89..b179d969569 100644
--- a/sys/netinet/ip_sha1.c
+++ b/sys/crypto/sha1.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_sha1.c,v 1.7 1999/02/17 18:10:23 deraadt Exp $ */
+/* $OpenBSD: sha1.c,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/*
* SHA-1 in C
@@ -22,7 +22,7 @@
#include <sys/param.h>
#include <sys/systm.h>
-#include <netinet/ip_sha1.h>
+#include <crypto/sha1.h>
#define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits))))
diff --git a/sys/netinet/ip_sha1.h b/sys/crypto/sha1.h
index f8d6569bf92..33525f04a0f 100644
--- a/sys/netinet/ip_sha1.h
+++ b/sys/crypto/sha1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_sha1.h,v 1.5 1999/02/17 18:10:24 deraadt Exp $ */
+/* $OpenBSD: sha1.h,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/*
* SHA-1 in C
diff --git a/sys/netinet/libdeslite/sk.h b/sys/crypto/sk.h
index 50125ffecd7..7c12128ee77 100644
--- a/sys/netinet/libdeslite/sk.h
+++ b/sys/crypto/sk.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: sk.h,v 1.2 1997/02/24 14:06:53 niklas Exp $ */
+/* $OpenBSD: sk.h,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/* lib/des/sk.h */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/ip_skipjack.c b/sys/crypto/skipjack.c
index 24b96a2c63b..6f7b277d46d 100644
--- a/sys/netinet/ip_skipjack.c
+++ b/sys/crypto/skipjack.c
@@ -12,7 +12,7 @@
*/
#include <sys/param.h>
-#include <netinet/ip_skipjack.h>
+#include <crypto/skipjack.h>
#include <sys/malloc.h>
static const u_int8_t ftable[0x100] =
diff --git a/sys/netinet/ip_skipjack.h b/sys/crypto/skipjack.h
index dd3fe607e70..dd3fe607e70 100644
--- a/sys/netinet/ip_skipjack.h
+++ b/sys/crypto/skipjack.h
diff --git a/sys/netinet/libdeslite/spr.h b/sys/crypto/spr.h
index 84d9395ce4f..4e99929ea7c 100644
--- a/sys/netinet/libdeslite/spr.h
+++ b/sys/crypto/spr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: spr.h,v 1.2 1997/02/24 14:06:54 niklas Exp $ */
+/* $OpenBSD: spr.h,v 1.1 2000/02/28 23:13:05 deraadt Exp $ */
/* lib/des/spr.h */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h
index 2efa37b7c3d..7c3feb7d986 100644
--- a/sys/netinet/ip_ipsp.h
+++ b/sys/netinet/ip_ipsp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_ipsp.h,v 1.60 2000/01/27 08:09:12 angelos Exp $ */
+/* $OpenBSD: ip_ipsp.h,v 1.61 2000/02/28 23:13:07 deraadt Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -48,11 +48,11 @@
#include <sys/queue.h>
#include <netinet/in.h>
#include <sys/md5k.h>
-#include <netinet/ip_sha1.h>
-#include <netinet/ip_rmd160.h>
-#include <netinet/ip_blf.h>
-#include <netinet/ip_cast.h>
-#include <netinet/ip_skipjack.h>
+#include <crypto/sha1.h>
+#include <crypto/rmd160.h>
+#include <crypto/blf.h>
+#include <crypto/cast.h>
+#include <crypto/skipjack.h>
union sockaddr_union
{
diff --git a/sys/netinet/libdeslite/Makefile b/sys/netinet/libdeslite/Makefile
deleted file mode 100644
index ab6867e0d70..00000000000
--- a/sys/netinet/libdeslite/Makefile
+++ /dev/null
@@ -1,40 +0,0 @@
-# $OpenBSD: Makefile,v 1.2 1997/02/24 14:06:50 niklas Exp $
-
-#
-# This is the "lite" portion of libdes -- just the routines needed
-# to do CBC DES and 3DES for IPSP.
-#
-#
-# Pruning by John Ioannidis, <ji@tla.org>
-#
-
-# This #define specifies the use of an alternative D_ENCRYPT macro in
-# ecb_encrypt. The choice of macro can make a %20 difference in the
-# speed. Unfortunatly the choise of the best macro appears to be very
-# dependant on the compiler and the machine in question.
-# For the following combinations use the ALT_ECB option.
-# Sparc 2 (cc -O4), sun 3/260 (cc -O4)
-# For the following combinations do not use the ALT_ECB option.
-# Sparc 2 (gcc2 -O2), sun 3/260 (cc -O2), mvax2 (cc -O), MSDOS (Turbo Cv2)
-# For other machines, experiment with changing the option and run
-# ./speed to see which is faster.
-# DO NOT TURN THIS OPTION ON WHEN COMPILING THIS CODE ON A 64 BIT MACHINE
-#OPTS2= -DDES_USE_PTR
-
-OPTS= $(OPTS0) $(OPTS1) $(OPTS2)
-
-#CC=cc
-#CFLAGS= -O $(OPTS) $(CFLAG)
-
-CC=gcc
-CFLAGS= -O3 -fomit-frame-pointer $(OPTS) $(CFLAG)
-
-OBJS= cbc3_enc.o cbc_enc.o ecb_enc.o set_key.o
-
-modules: libdeslite.o
-
-libdeslite.o: $(OBJS)
- ld -x -r -o libdeslite.o $(OBJS)
-clean:
- @rm -f *.o
-# DO NOT DELETE THIS LINE -- make depend depends on it.