[Midnightbsd-cvs] src [11616] fixup

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Sun Jul 8 12:34:45 EDT 2018


Revision: 11616
          http://svnweb.midnightbsd.org/src/?rev=11616
Author:   laffer1
Date:     2018-07-08 12:34:44 -0400 (Sun, 08 Jul 2018)
Log Message:
-----------
fixup

Modified Paths:
--------------
    trunk/secure/usr.bin/bdes/Makefile
    trunk/secure/usr.bin/bdes/bdes.1
    trunk/secure/usr.bin/bdes/bdes.c
    trunk/secure/usr.bin/bdes/bdes.ps

Property Changed:
----------------
    trunk/secure/usr.bin/bdes/bdes.1
    trunk/secure/usr.bin/bdes/bdes.ps

Modified: trunk/secure/usr.bin/bdes/Makefile
===================================================================
--- trunk/secure/usr.bin/bdes/Makefile	2018-07-08 16:33:52 UTC (rev 11615)
+++ trunk/secure/usr.bin/bdes/Makefile	2018-07-08 16:34:44 UTC (rev 11616)
@@ -1,5 +1,6 @@
+# $MidnightBSD$
 #	@(#)Makefile	8.1 (Berkeley) 6/6/93
-# $FreeBSD: src/secure/usr.bin/bdes/Makefile,v 1.14 2004/02/23 20:25:27 johan Exp $
+# $FreeBSD: stable/10/secure/usr.bin/bdes/Makefile 126178 2004-02-23 20:25:27Z johan $
 
 PROG=	bdes
 

Modified: trunk/secure/usr.bin/bdes/bdes.1
===================================================================
--- trunk/secure/usr.bin/bdes/bdes.1	2018-07-08 16:33:52 UTC (rev 11615)
+++ trunk/secure/usr.bin/bdes/bdes.1	2018-07-08 16:34:44 UTC (rev 11616)
@@ -1,3 +1,4 @@
+.\" $MidnightBSD$
 .\" Copyright (c) 1991, 1993
 .\"	The Regents of the University of California.  All rights reserved.
 .\"
@@ -33,14 +34,14 @@
 .\" SUCH DAMAGE.
 .\"
 .\"	@(#)bdes.1	8.1 (Berkeley) 6/29/93
-.\" $FreeBSD: src/secure/usr.bin/bdes/bdes.1,v 1.7 2003/06/02 19:10:59 markm Exp $
+.\" $FreeBSD: stable/10/secure/usr.bin/bdes/bdes.1 255760 2013-09-21 11:10:09Z des $
 .\"
-.Dd June 29, 1993
+.Dd September 20, 2013
 .Dt BDES 1
 .Os
 .Sh NAME
 .Nm bdes
-.Nd "encrypt/decrypt using the Data Encryption Standard (DES)"
+.Nd "encrypt / decrypt using the Data Encryption Standard (DES)"
 .Sh SYNOPSIS
 .Nm
 .Op Fl abdp
@@ -51,6 +52,11 @@
 .Op Fl o Ar N
 .Op Fl v Ar vector
 .Sh DESCRIPTION
+.Bf -symbolic
+The DES cipher should no longer be considered secure.
+Please consider using a more modern alternative.
+.Ef
+.Pp
 The
 .Nm
 utility implements all
@@ -141,7 +147,7 @@
 .It Fl o Ar N
 Use
 .Ar N Ns \-bit
-ouput feedback (OFB) mode.
+output feedback (OFB) mode.
 Currently
 .Ar N
 must be a multiple of 8 between 8 and 64 inclusive (this does not conform
@@ -215,22 +221,6 @@
 and can be disabled for
 .Tn ASCII
 keys as well.
-.Pp
-The
-.Tn DES
-is considered a very strong cryptosystem,
-and other than table lookup attacks,
-key search attacks,
-and Hellman's time-memory tradeoff
-(all of which are very expensive and time-consuming),
-no cryptanalytic methods
-for breaking the
-.Tn DES
-are known in the open literature.
-No doubt the choice of keys
-and key security
-are the most vulnerable aspect of
-.Nm .
 .Sh IMPLEMENTATION NOTES
 For implementors wishing to write
 software compatible with this program,
@@ -347,16 +337,6 @@
 SUCH DAMAGE.
 .Ed
 .Sh BUGS
-There is a controversy raging over whether the
-.Tn DES
-will still be secure
-in a few years.
-The advent of special-purpose hardware
-could reduce the cost of any of the
-methods of attack named above
-so that they are no longer
-computationally infeasible.
-.Pp
 As the key or key schedule
 is stored in memory,
 the encryption can be


Property changes on: trunk/secure/usr.bin/bdes/bdes.1
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Modified: trunk/secure/usr.bin/bdes/bdes.c
===================================================================
--- trunk/secure/usr.bin/bdes/bdes.c	2018-07-08 16:33:52 UTC (rev 11615)
+++ trunk/secure/usr.bin/bdes/bdes.c	2018-07-08 16:34:44 UTC (rev 11616)
@@ -1,3 +1,4 @@
+/* $MidnightBSD$ */
 /*-
  * Copyright (c) 1991, 1993
  *	The Regents of the University of California.  All rights reserved.
@@ -81,7 +82,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/secure/usr.bin/bdes/bdes.c,v 1.9 2005/02/10 14:47:06 ru Exp $");
+__FBSDID("$FreeBSD: stable/10/secure/usr.bin/bdes/bdes.c 198856 2009-11-03 18:40:42Z jhb $");
 
 #include <sys/types.h>
 
@@ -170,16 +171,16 @@
 	int i;				/* counter in a for loop */
 	char *p;			/* used to obtain the key */
 	DES_cblock msgbuf;		/* I/O buffer */
-	int kflag;			/* command-line encryptiooon key */
+	int kflag;			/* command-line encryption key */
 
 	setproctitle("-");		/* Hide command-line arguments */
 
-	/* initialize the initialization vctor */
+	/* initialize the initialization vector */
 	MEMZERO(ivec, 8);
 
 	/* process the argument list */
 	kflag = 0;
-	while ((i = getopt(argc, argv, "abdF:f:k:m:o:pv:")) != EOF)
+	while ((i = getopt(argc, argv, "abdF:f:k:m:o:pv:")) != -1)
 		switch(i) {
 		case 'a':		/* key is ASCII */
 			keybase = KEY_ASCII;

Modified: trunk/secure/usr.bin/bdes/bdes.ps
===================================================================
--- trunk/secure/usr.bin/bdes/bdes.ps	2018-07-08 16:33:52 UTC (rev 11615)
+++ trunk/secure/usr.bin/bdes/bdes.ps	2018-07-08 16:34:44 UTC (rev 11616)
@@ -9,6 +9,7 @@
 %
 % Known Problems:
 %	Due to bugs in Transcript, the 'PS-Adobe-' is omitted from line 1
+% $FreeBSD: stable/10/secure/usr.bin/bdes/bdes.ps 180206 2008-07-03 03:36:58Z peter $
 /FMversion (2.0) def 
 % Set up Color vs. Black-and-White
 	/FMPrintInColor systemdict /colorimage known def


Property changes on: trunk/secure/usr.bin/bdes/bdes.ps
___________________________________________________________________
Added: mnbsd:nokeywords
## -0,0 +1 ##
+MidnightBSD
\ No newline at end of property


More information about the Midnightbsd-cvs mailing list