1999-08-27 23:15:48 +00:00
|
|
|
# $FreeBSD$
|
1994-09-24 02:59:15 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2016-02-09 16:58:50 +00:00
|
|
|
PACKAGE=runtime
|
1993-06-18 13:00:14 +00:00
|
|
|
PROG= ed
|
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
2018-11-04 17:56:16 +00:00
|
|
|
SRCS= buf.c glbl.c io.c main.c re.c sub.c undo.c
|
1998-03-06 16:05:18 +00:00
|
|
|
LINKS= ${BINDIR}/ed ${BINDIR}/red
|
|
|
|
MLINKS= ed.1 red.1
|
1993-06-18 13:00:14 +00:00
|
|
|
|
|
|
|
.include <bsd.prog.mk>
|