aboutsummaryrefslogtreecommitdiff
path: root/bin/ed/Makefile
diff options
context:
space:
mode:
authorConrad Meyer <cem@FreeBSD.org>2018-11-04 17:56:16 +0000
committerConrad Meyer <cem@FreeBSD.org>2018-11-04 17:56:16 +0000
commitd83db3fb6a3c2ffeaafd5e688a2653f39a7be9d9 (patch)
tree8804013c87f78b80afb64fedd4f16724a5f8d36e /bin/ed/Makefile
parent5a453d5f5b8cff5a58b7c65df3822a2a6094f7b4 (diff)
downloadsrc-d83db3fb6a3c2ffeaafd5e688a2653f39a7be9d9.tar.gz
src-d83db3fb6a3c2ffeaafd5e688a2653f39a7be9d9.zip
Drop ed(1) "crypto"
You should not be using DES. You should not have been using DES for the past 30 years. The ed DES-CBC scheme lacked several desirable properties of a sealed document system, even ignoring DES itself. In particular, it did not provide the "integrity" cryptographic property (detection of tampering), and it treated ASCII passwords as 64-bit keys (instead of using a KDF like scrypt or PBKDF2). Some general approaches ed(1) users might consider to replace the removed DES mode: 1. Full disk encryption with something like AES-XTS. This is easy to conceptualize, design, and implement, and it provides confidentiality for data at rest. Like CBC, it lacks tampering protection. Examples include GELI, LUKS, FileVault2. 2. Encrypted overlay ("stackable") filesystems (EncFS, PEFS?, CryptoFS, others). 3. Native encryption at the filesystem layer. Ext4/F2FS, ZFS, APFS, and NTFS all have some flavor of this. 4. Storing your files unencrypted. It's not like DES was doing you much good. If you have DES-CBC scrambled files produced by ed(1) prior to this change, you may decrypt them with: openssl des-cbc -d -iv 0 -K <key in hex> -in <inputfile> -out <plaintext> Reviewed by: allanjude, bapt, emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D17829
Notes
Notes: svn path=/head/; revision=340132
Diffstat (limited to 'bin/ed/Makefile')
-rw-r--r--bin/ed/Makefile7
1 files changed, 1 insertions, 6 deletions
diff --git a/bin/ed/Makefile b/bin/ed/Makefile
index 40e06134e87d..1d4b7685c025 100644
--- a/bin/ed/Makefile
+++ b/bin/ed/Makefile
@@ -4,13 +4,8 @@
PACKAGE=runtime
PROG= ed
-SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
+SRCS= buf.c glbl.c io.c main.c re.c sub.c undo.c
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
-.if ${MK_OPENSSL} != "no" && ${MK_ED_CRYPTO} != "no"
-CFLAGS+=-DDES
-LIBADD= crypto
-.endif
-
.include <bsd.prog.mk>