pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/security/netpgpverify/files



Module Name:    pkgsrc
Committed By:   agc
Date:           Thu Jun 30 21:10:59 UTC 2016

Modified Files:
        pkgsrc/security/netpgpverify/files: Makefile.bsd Makefile.in
            Makefile.lib.in Makefile.libtool.in digest.c digest.h verify.h
Removed Files:
        pkgsrc/security/netpgpverify/files: tiger.c tiger.h

Log Message:
Update netpgpverify and libnetpgpverify to 20160624

+ Get rid of the tiger digest - only specified in RFC 2440, not specified
in RFC 4880.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 pkgsrc/security/netpgpverify/files/Makefile.bsd
cvs rdiff -u -r1.6 -r1.7 pkgsrc/security/netpgpverify/files/Makefile.in \
    pkgsrc/security/netpgpverify/files/digest.c
cvs rdiff -u -r1.1 -r1.2 pkgsrc/security/netpgpverify/files/Makefile.lib.in \
    pkgsrc/security/netpgpverify/files/Makefile.libtool.in
cvs rdiff -u -r1.2 -r1.3 pkgsrc/security/netpgpverify/files/digest.h
cvs rdiff -u -r1.3 -r0 pkgsrc/security/netpgpverify/files/tiger.c
cvs rdiff -u -r1.2 -r0 pkgsrc/security/netpgpverify/files/tiger.h
cvs rdiff -u -r1.26 -r1.27 pkgsrc/security/netpgpverify/files/verify.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/security/netpgpverify/files/Makefile.bsd
diff -u pkgsrc/security/netpgpverify/files/Makefile.bsd:1.10 pkgsrc/security/netpgpverify/files/Makefile.bsd:1.11
--- pkgsrc/security/netpgpverify/files/Makefile.bsd:1.10        Wed Jun 15 16:45:10 2016
+++ pkgsrc/security/netpgpverify/files/Makefile.bsd     Thu Jun 30 21:10:59 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.bsd,v 1.10 2016/06/15 16:45:10 agc Exp $
+# $NetBSD: Makefile.bsd,v 1.11 2016/06/30 21:10:59 agc Exp $
 
 PROG=netpgpverify
 
@@ -8,7 +8,7 @@ SRCS+= pgpsum.c rsa.c
 
 SRCS+= bzlib.c zlib.c
 
-SRCS+= md5c.c rmd160.c sha1.c sha2.c tiger.c
+SRCS+= md5c.c rmd160.c sha1.c sha2.c
 
 CPPFLAGS+=-I.
 

Index: pkgsrc/security/netpgpverify/files/Makefile.in
diff -u pkgsrc/security/netpgpverify/files/Makefile.in:1.6 pkgsrc/security/netpgpverify/files/Makefile.in:1.7
--- pkgsrc/security/netpgpverify/files/Makefile.in:1.6  Wed Jun 15 16:45:10 2016
+++ pkgsrc/security/netpgpverify/files/Makefile.in      Thu Jun 30 21:10:59 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.in,v 1.6 2016/06/15 16:45:10 agc Exp $
+# $NetBSD: Makefile.in,v 1.7 2016/06/30 21:10:59 agc Exp $
 
 PROG=netpgpverify
 
@@ -8,7 +8,7 @@ OBJS+= pgpsum.o rsa.o
 
 OBJS+= bzlib.o zlib.o
 
-OBJS+= sha1.o sha2.o md5c.o rmd160.o tiger.o
+OBJS+= sha1.o sha2.o md5c.o rmd160.o
 
 PREFIX=@PREFIX@
 MANDIR=@MANDIR@
Index: pkgsrc/security/netpgpverify/files/digest.c
diff -u pkgsrc/security/netpgpverify/files/digest.c:1.6 pkgsrc/security/netpgpverify/files/digest.c:1.7
--- pkgsrc/security/netpgpverify/files/digest.c:1.6     Fri Feb 19 22:41:50 2016
+++ pkgsrc/security/netpgpverify/files/digest.c Thu Jun 30 21:10:59 2016
@@ -64,12 +64,6 @@ static uint8_t prefix_sha256[] = {
        0x65, 0x03, 0x04, 0x02, 0x01, 0x05, 0x00, 0x04, 0x20
 };
 
-static uint64_t        prefix_tiger[] = {
-       0x0123456789ABCDEFLL,
-       0xFEDCBA9876543210LL,
-       0xF096A5B4C3B2E187LL
-};
-
 static uint8_t prefix_rmd160[] = {
        0x30, 0x21, 0x30, 0x09, 0x06, 0x05, 0x2B, 0x24,
        0x03, 0x02, 0x01, 0x05, 0x00, 0x04, 0x14
@@ -99,9 +93,6 @@ digest_alg_size(unsigned alg)
                return 32;
        case SHA512_HASH_ALG:
                return 64;
-       case TIGER_HASH_ALG:
-       case TIGER2_HASH_ALG:
-               return TIGER_DIGEST_LENGTH;
        default:
                printf("hash_any: bad algorithm\n");
                return 0;
@@ -151,20 +142,6 @@ digest_init(digest_t *hash, const uint32
                hash->len = sizeof(prefix_sha512);
                hash->ctx = &hash->u.sha512ctx;
                return 1;
-       case TIGER_HASH_ALG:
-               netpgpv_TIGER_Init(&hash->u.tigerctx);
-               hash->size = TIGER_DIGEST_LENGTH;
-               hash->prefix = prefix_tiger;
-               hash->len = sizeof(prefix_tiger);
-               hash->ctx = &hash->u.tigerctx;
-               return 1;
-       case TIGER2_HASH_ALG:
-               netpgpv_TIGER2_Init(&hash->u.tigerctx);
-               hash->size = TIGER_DIGEST_LENGTH;
-               hash->prefix = prefix_tiger;
-               hash->len = sizeof(prefix_tiger);
-               hash->ctx = &hash->u.tigerctx;
-               return 1;
        default:
                printf("hash_any: bad algorithm\n");
                return 0;
@@ -182,8 +159,6 @@ static rec_t        hashalgs[] = {
        {       "ripemd",       RIPEMD_HASH_ALG },
        {       "sha256",       SHA256_HASH_ALG },
        {       "sha512",       SHA512_HASH_ALG },
-       {       "tiger",        TIGER_HASH_ALG  },
-       {       "tiger2",       TIGER2_HASH_ALG },
        {       NULL,           0               }
 };
 
@@ -223,10 +198,6 @@ digest_update(digest_t *hash, const uint
        case SHA512_HASH_ALG:
                netpgpv_SHA512_Update(hash->ctx, data, length);
                return 1;
-       case TIGER_HASH_ALG:
-       case TIGER2_HASH_ALG:
-               netpgpv_TIGER_Update(hash->ctx, data, length);
-               return 1;
        default:
                printf("hash_any: bad algorithm\n");
                return 0;
@@ -255,9 +226,6 @@ digest_final(uint8_t *out, digest_t *has
        case SHA512_HASH_ALG:
                netpgpv_SHA512_Final(out, hash->ctx);
                break;
-       case TIGER_HASH_ALG:
-               netpgpv_TIGER_Final(out, hash->ctx);
-               break;
        default:
                printf("hash_any: bad algorithm\n");
                return 0;

Index: pkgsrc/security/netpgpverify/files/Makefile.lib.in
diff -u pkgsrc/security/netpgpverify/files/Makefile.lib.in:1.1 pkgsrc/security/netpgpverify/files/Makefile.lib.in:1.2
--- pkgsrc/security/netpgpverify/files/Makefile.lib.in:1.1      Sun Feb 16 17:15:48 2014
+++ pkgsrc/security/netpgpverify/files/Makefile.lib.in  Thu Jun 30 21:10:59 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.lib.in,v 1.1 2014/02/16 17:15:48 agc Exp $
+# $NetBSD: Makefile.lib.in,v 1.2 2016/06/30 21:10:59 agc Exp $
 
 LIB=   libnetpgpverify.a
 
@@ -8,7 +8,7 @@ OBJS+= pgpsum.o rsa.o
 
 OBJS+= bzlib.o zlib.o
 
-OBJS+= sha1.o sha2.o md5c.o rmd160.o tiger.o
+OBJS+= sha1.o sha2.o md5c.o rmd160.o
 
 PREFIX=@PREFIX@
 MANDIR=@MANDIR@
Index: pkgsrc/security/netpgpverify/files/Makefile.libtool.in
diff -u pkgsrc/security/netpgpverify/files/Makefile.libtool.in:1.1 pkgsrc/security/netpgpverify/files/Makefile.libtool.in:1.2
--- pkgsrc/security/netpgpverify/files/Makefile.libtool.in:1.1  Sun Feb 16 17:15:48 2014
+++ pkgsrc/security/netpgpverify/files/Makefile.libtool.in      Thu Jun 30 21:10:59 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.libtool.in,v 1.1 2014/02/16 17:15:48 agc Exp $
+# $NetBSD: Makefile.libtool.in,v 1.2 2016/06/30 21:10:59 agc Exp $
 
 LIB=   libnetpgpverify.a
 
@@ -8,7 +8,7 @@ OBJS+= pgpsum.o rsa.o
 
 OBJS+= bzlib.o zlib.o
 
-OBJS+= sha1.o sha2.o md5c.o rmd160.o tiger.o
+OBJS+= sha1.o sha2.o md5c.o rmd160.o
 
 PREFIX=@PREFIX@
 MANDIR=@MANDIR@

Index: pkgsrc/security/netpgpverify/files/digest.h
diff -u pkgsrc/security/netpgpverify/files/digest.h:1.2 pkgsrc/security/netpgpverify/files/digest.h:1.3
--- pkgsrc/security/netpgpverify/files/digest.h:1.2     Tue Sep  1 19:38:42 2015
+++ pkgsrc/security/netpgpverify/files/digest.h Thu Jun 30 21:10:59 2016
@@ -33,7 +33,6 @@
 #include "sha1.h"
 #include "sha2.h"
 #include "rmd160.h"
-#include "tiger.h"
 
 #ifndef __BEGIN_DECLS
 #  if defined(__cplusplus)
@@ -50,12 +49,10 @@ __BEGIN_DECLS
 #define MD5_HASH_ALG           1
 #define SHA1_HASH_ALG          2
 #define RIPEMD_HASH_ALG                3
-#define TIGER_HASH_ALG         6       /* from rfc2440 */
 #define SHA256_HASH_ALG                8
 #define SHA384_HASH_ALG                9
 #define SHA512_HASH_ALG                10
 #define SHA224_HASH_ALG                11
-#define TIGER2_HASH_ALG                100     /* private/experimental from rfc4880 */
 
 /* structure to describe digest methods */
 typedef struct digest_t {
@@ -67,7 +64,6 @@ typedef struct digest_t {
                NETPGPV_RMD160_CTX       rmd160ctx;     /* RIPEMD */
                NETPGPV_SHA256_CTX       sha256ctx;     /* SHA256 */
                NETPGPV_SHA512_CTX       sha512ctx;     /* SHA512 */
-               NETPGPV_TIGER_CTX        tigerctx;      /* TIGER/TIGER2 */
        } u;
        void                    *prefix;        /* points to specific prefix */
        uint32_t                 len;           /* prefix length */

Index: pkgsrc/security/netpgpverify/files/verify.h
diff -u pkgsrc/security/netpgpverify/files/verify.h:1.26 pkgsrc/security/netpgpverify/files/verify.h:1.27
--- pkgsrc/security/netpgpverify/files/verify.h:1.26    Thu Jun 30 21:03:51 2016
+++ pkgsrc/security/netpgpverify/files/verify.h Thu Jun 30 21:10:59 2016
@@ -23,9 +23,9 @@
  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 #ifndef NETPGP_VERIFY_H_
-#define NETPGP_VERIFY_H_       20160623
+#define NETPGP_VERIFY_H_       20160624
 
-#define NETPGPVERIFY_VERSION   "netpgpverify portable 20160623"
+#define NETPGPVERIFY_VERSION   "netpgpverify portable 20160624"
 
 #include <sys/types.h>
 



Home | Main Index | Thread Index | Old Index