Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -36,6 +36,7 @@ SUBDIR += bcrypt SUBDIR += bcwipe SUBDIR += bdc + SUBDIR += bdes SUBDIR += bearssl SUBDIR += beecrypt SUBDIR += belier Index: head/security/bdes/Makefile =================================================================== --- head/security/bdes/Makefile +++ head/security/bdes/Makefile @@ -0,0 +1,29 @@ +# Created by: Bernard Spil +# $FreeBSD$ + +PORTNAME= bdes +PORTVERSION= 1993 +CATEGORIES= security +MASTER_SITES= http://phobos69.inf.uni-konstanz.de/download/tools/ \ + LOCAL/brnrd +DISTNAME= ${PORTNAME} + +MAINTAINER= brnrd@FreeBSD.org +COMMENT= Encrypt/decrypt using the Data Encryption Standard (DES) + +LICENSE= BSD2CLAUSE + +USES= ssl tar +WRKSRC= ${WRKDIR}/bdes.src + +PLIST_FILES= bin/bdes man/man1/bdes.1.gz + +do-build: + cd ${WRKSRC} && ${CC} ${CFLAGS} -I${OPENSSLINC} -c bdes.c + cd ${WRKSRC} && ${CC} -o bdes bdes.o ${OPENSSLLIB}/libcrypto.so + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bdes ${STAGEDIR}${PREFIX}/bin/bdes + ${INSTALL_MAN} ${WRKSRC}/bdes.1 ${STAGEDIR}${MANPREFIX}/man/man1/bdes.1 + +.include Index: head/security/bdes/distinfo =================================================================== --- head/security/bdes/distinfo +++ head/security/bdes/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1486209042 +SHA256 (bdes.tar) = 1556f91258d8997f3b066a2c7c054e98f7b61807215816ebcd846edf8ee25ec3 +SIZE (bdes.tar) = 1167360 Index: head/security/bdes/pkg-descr =================================================================== --- head/security/bdes/pkg-descr +++ head/security/bdes/pkg-descr @@ -0,0 +1,9 @@ +The DES cipher should no longer be considered secure. Please consider +using a more modern alternative. + +The bdes utility implements all DES modes of operation described in FIPS +PUB 81, including alternative cipher feedback mode and both authentica- +tion modes. The bdes utility reads from the standard input and writes to +the standard output. By default, the input is encrypted using cipher +block chaining (CBC) mode. Using the same key for encryption and decryp- +tion preserves plain text. Index: head/security/bdes/pkg-message =================================================================== --- head/security/bdes/pkg-message +++ head/security/bdes/pkg-message @@ -0,0 +1,4 @@ +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +!! The DES cipher should no longer be considered secure. !! +!! Please consider using a more modern alternative. !! +!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!