summaryrefslogtreecommitdiff
path: root/security/digest
diff options
context:
space:
mode:
Diffstat (limited to 'security/digest')
-rw-r--r--security/digest/Makefile30
-rw-r--r--security/digest/distinfo2
-rw-r--r--security/digest/files/patch-sha2.c11
-rw-r--r--security/digest/files/patch-triger.c62
-rw-r--r--security/digest/pkg-descr5
5 files changed, 0 insertions, 110 deletions
diff --git a/security/digest/Makefile b/security/digest/Makefile
deleted file mode 100644
index 1f4878872c0d..000000000000
--- a/security/digest/Makefile
+++ /dev/null
@@ -1,30 +0,0 @@
-# Created by: trevor
-# $FreeBSD$
-
-PORTNAME?= digest
-PORTVERSION?= 20050323
-PORTREVISION= 1
-CATEGORIES?= security sysutils
-MASTER_SITES?= NETBSD/../../misc/digest
-
-MAINTAINER?= ports@FreeBSD.org
-COMMENT?= Message digest wrapper utility
-
-BROKEN= unfetchable
-DEPRECATED= Unfetchable, unmaintained
-EXPIRATION_DATE= 2019-10-16
-
-CONFLICTS?= emboss-[0-9]* qmail-ldap2-*
-
-GNU_CONFIGURE= yes
-
-PLIST_FILES?= bin/${PORTNAME} man/man1/${PORTNAME}.1.gz
-
-.include <bsd.port.pre.mk>
-
-test: build
- @${ECHO_MSG} "No news is good news"
- @cd ${WRKSRC} && ${SETENV} DIGESTDIR=${WRKSRC} DIGESTCMD=${PORTNAME} ${SH} ./regress.sh
- @${ECHO_MSG} "All tests completed"
-
-.include <bsd.port.post.mk>
diff --git a/security/digest/distinfo b/security/digest/distinfo
deleted file mode 100644
index e2f8ea610af0..000000000000
--- a/security/digest/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (digest-20050323.tar.gz) = f5187daa1d278405cd364ff74e7cfde98edbebfebb97742b0d255752b320fbeb
-SIZE (digest-20050323.tar.gz) = 144957
diff --git a/security/digest/files/patch-sha2.c b/security/digest/files/patch-sha2.c
deleted file mode 100644
index bedf3e5fc22a..000000000000
--- a/security/digest/files/patch-sha2.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- sha2.c.orig Thu Jul 21 00:39:56 2005
-+++ sha2.c Thu Jul 21 02:30:00 2005
-@@ -588,7 +588,7 @@
- /* Begin padding with a 1 bit: */
- context->buffer[usedspace++] = 0x80;
-
-- if (usedspace < SHA256_SHORT_BLOCK_LENGTH) {
-+ if (usedspace <= SHA256_SHORT_BLOCK_LENGTH) {
- /* Set-up for the last transform: */
- MEMSET_BZERO(&context->buffer[usedspace], SHA256_SHORT_BLOCK_LENGTH - usedspace);
- } else {
diff --git a/security/digest/files/patch-triger.c b/security/digest/files/patch-triger.c
deleted file mode 100644
index bd1085bab41c..000000000000
--- a/security/digest/files/patch-triger.c
+++ /dev/null
@@ -1,62 +0,0 @@
---- tiger.c.orig Tue May 8 06:31:30 2007
-+++ tiger.c Tue May 8 08:07:57 2007
-@@ -646,12 +646,16 @@
- TIGER_COMPRESS_MACRO(((const uint64_t *) str), ((uint64_t *) state));
- }
-
-+static uint64_t init_state[3] = {
-+ 0x0123456789ABCDEFLL, 0xFEDCBA9876543210LL, 0xF096A5B4C3B2E187LL
-+};
-+
- void
- TIGERInit(tiger_context_t *tp)
- {
-- tp->ctx[0] = 0x0123456789ABCDEFLL;
-- tp->ctx[1] = 0xFEDCBA9876543210LL;
-- tp->ctx[2] = 0xF096A5B4C3B2E187LL;
-+ tp->ctx[0] = init_state[0];
-+ tp->ctx[1] = init_state[1];
-+ tp->ctx[2] = init_state[2];
- }
-
- void
-@@ -708,10 +712,27 @@
- tiger_compress(((uint64_t *) temp), tp->ctx);
- }
-
-+#define PUT_64BIT_BE(cp, value) do { \
-+ (cp)[0] = (value) >> 56; \
-+ (cp)[1] = (value) >> 48; \
-+ (cp)[2] = (value) >> 40; \
-+ (cp)[3] = (value) >> 32; \
-+ (cp)[4] = (value) >> 24; \
-+ (cp)[5] = (value) >> 16; \
-+ (cp)[6] = (value) >> 8; \
-+ (cp)[7] = (value); } while (0)
-+
- void
- TIGERFinal(uint8_t *digest, tiger_context_t *tp)
- {
-- /* nothing to do - included for compatibility with SHA* interface */
-+ int i;
-+
-+ if (tp->ctx[0] == init_state[0] && tp->ctx[1] == init_state[1] &&
-+ tp->ctx[2] == init_state[2])
-+ TIGERUpdate(tp, "", 0);
-+
-+ for (i = 0; i < 3; i++)
-+ PUT_64BIT_BE(digest + i * 8, tp->ctx[i]);
- }
-
- static void
-@@ -734,6 +755,9 @@
- if (buf == NULL && (buf = malloc(41)) == NULL) {
- return NULL;
- }
-+ if (tp->ctx[0] == init_state[0] && tp->ctx[1] == init_state[1] &&
-+ tp->ctx[2] == init_state[2])
-+ TIGERUpdate(tp, "", 0);
-
- for (i = 0; i < 3; ++i)
- print_uint64(buf + i * 16, tp->ctx[i]);
-
diff --git a/security/digest/pkg-descr b/security/digest/pkg-descr
deleted file mode 100644
index 49e9b0427590..000000000000
--- a/security/digest/pkg-descr
+++ /dev/null
@@ -1,5 +0,0 @@
-The digest utility is a wrapper for the md5, sha1, sha256, sha384,
-sha512, rmd160, tiger and whirlpool message digest algorithms (also
-known as hashes, checksums or "fingerprints").
-
-WWW: http://cvsweb.NetBSD.org/bsdweb.cgi/pkgsrc/pkgtools/digest/