pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/netpgpverify/files Update netpgpverify and li...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/71265551f918
branches:  trunk
changeset: 349168:71265551f918
user:      agc <agc%pkgsrc.org@localhost>
date:      Thu Jun 30 21:10:59 2016 +0000

description:
Update netpgpverify and libnetpgpverify to 20160624

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

diffstat:

 security/netpgpverify/files/Makefile.bsd        |    4 +-
 security/netpgpverify/files/Makefile.in         |    4 +-
 security/netpgpverify/files/Makefile.lib.in     |    4 +-
 security/netpgpverify/files/Makefile.libtool.in |    4 +-
 security/netpgpverify/files/digest.c            |   32 -
 security/netpgpverify/files/digest.h            |    4 -
 security/netpgpverify/files/tiger.c             |  906 ------------------------
 security/netpgpverify/files/tiger.h             |   65 -
 security/netpgpverify/files/verify.h            |    4 +-
 9 files changed, 10 insertions(+), 1017 deletions(-)

diffs (truncated from 1175 to 300 lines):

diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/Makefile.bsd
--- a/security/netpgpverify/files/Makefile.bsd  Thu Jun 30 21:05:00 2016 +0000
+++ b/security/netpgpverify/files/Makefile.bsd  Thu Jun 30 21:10:59 2016 +0000
@@ -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+= 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.
 
diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/Makefile.in
--- a/security/netpgpverify/files/Makefile.in   Thu Jun 30 21:05:00 2016 +0000
+++ b/security/netpgpverify/files/Makefile.in   Thu Jun 30 21:10:59 2016 +0000
@@ -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+= 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@
diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/Makefile.lib.in
--- a/security/netpgpverify/files/Makefile.lib.in       Thu Jun 30 21:05:00 2016 +0000
+++ b/security/netpgpverify/files/Makefile.lib.in       Thu Jun 30 21:10:59 2016 +0000
@@ -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+= 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@
diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/Makefile.libtool.in
--- a/security/netpgpverify/files/Makefile.libtool.in   Thu Jun 30 21:05:00 2016 +0000
+++ b/security/netpgpverify/files/Makefile.libtool.in   Thu Jun 30 21:10:59 2016 +0000
@@ -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+= 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@
diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/digest.c
--- a/security/netpgpverify/files/digest.c      Thu Jun 30 21:05:00 2016 +0000
+++ b/security/netpgpverify/files/digest.c      Thu Jun 30 21:10:59 2016 +0000
@@ -64,12 +64,6 @@
        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 @@
                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 @@
                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 @@
        {       "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 @@
        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 @@
        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;
diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/digest.h
--- a/security/netpgpverify/files/digest.h      Thu Jun 30 21:05:00 2016 +0000
+++ b/security/netpgpverify/files/digest.h      Thu Jun 30 21:10:59 2016 +0000
@@ -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 @@
 #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 @@
                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 */
diff -r bd4d619eda64 -r 71265551f918 security/netpgpverify/files/tiger.c
--- a/security/netpgpverify/files/tiger.c       Thu Jun 30 21:05:00 2016 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,906 +0,0 @@
-#include <sys/types.h>
-
-#include <errno.h>
-#include <fcntl.h>
-#include <inttypes.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
-#include "tiger.h"
-
-#ifndef IS_LITTLE_ENDIAN
-#define IS_LITTLE_ENDIAN(x)  (*(char *)(void *)&x)
-#define IS_BIG_ENDIAN(x)     !(*(char *)(void *)&x)
-#endif
-
-#define BSWAP64(x)     ((((x) & 0xffULL) << 56) |                      \
-                        (((x) & 0xff00ULL) << 40) |                    \
-                        (((x) & 0xff0000ULL) << 24) |                  \
-                        (((x) & 0xff000000ULL) << 8) |                 \
-                        (((x) & 0xff00000000ULL) >> 8) |               \
-                        (((x) & 0xff0000000000ULL) >> 24) |            \
-                        (((x) & 0xff000000000000ULL) >> 40) |          \
-                        (((x) & 0xff00000000000000ULL) >> 56))
-
-/* sboxes.c: Tiger S boxes */
-static uint64_t table[4*256] = {
-       0x02AAB17CF7E90C5ELL   /*    0 */,    0xAC424B03E243A8ECLL   /*    1 */,
-       0x72CD5BE30DD5FCD3LL   /*    2 */,    0x6D019B93F6F97F3ALL   /*    3 */,
-       0xCD9978FFD21F9193LL   /*    4 */,    0x7573A1C9708029E2LL   /*    5 */,
-       0xB164326B922A83C3LL   /*    6 */,    0x46883EEE04915870LL   /*    7 */,
-       0xEAACE3057103ECE6LL   /*    8 */,    0xC54169B808A3535CLL   /*    9 */,
-       0x4CE754918DDEC47CLL   /*   10 */,    0x0AA2F4DFDC0DF40CLL   /*   11 */,
-       0x10B76F18A74DBEFALL   /*   12 */,    0xC6CCB6235AD1AB6ALL   /*   13 */,
-       0x13726121572FE2FFLL   /*   14 */,    0x1A488C6F199D921ELL   /*   15 */,
-       0x4BC9F9F4DA0007CALL   /*   16 */,    0x26F5E6F6E85241C7LL   /*   17 */,
-       0x859079DBEA5947B6LL   /*   18 */,    0x4F1885C5C99E8C92LL   /*   19 */,
-       0xD78E761EA96F864BLL   /*   20 */,    0x8E36428C52B5C17DLL   /*   21 */,
-       0x69CF6827373063C1LL   /*   22 */,    0xB607C93D9BB4C56ELL   /*   23 */,
-       0x7D820E760E76B5EALL   /*   24 */,    0x645C9CC6F07FDC42LL   /*   25 */,
-       0xBF38A078243342E0LL   /*   26 */,    0x5F6B343C9D2E7D04LL   /*   27 */,
-       0xF2C28AEB600B0EC6LL   /*   28 */,    0x6C0ED85F7254BCACLL   /*   29 */,
-       0x71592281A4DB4FE5LL   /*   30 */,    0x1967FA69CE0FED9FLL   /*   31 */,
-       0xFD5293F8B96545DBLL   /*   32 */,    0xC879E9D7F2A7600BLL   /*   33 */,
-       0x860248920193194ELL   /*   34 */,    0xA4F9533B2D9CC0B3LL   /*   35 */,
-       0x9053836C15957613LL   /*   36 */,    0xDB6DCF8AFC357BF1LL   /*   37 */,
-       0x18BEEA7A7A370F57LL   /*   38 */,    0x037117CA50B99066LL   /*   39 */,
-       0x6AB30A9774424A35LL   /*   40 */,    0xF4E92F02E325249BLL   /*   41 */,
-       0x7739DB07061CCAE1LL   /*   42 */,    0xD8F3B49CECA42A05LL   /*   43 */,
-       0xBD56BE3F51382F73LL   /*   44 */,    0x45FAED5843B0BB28LL   /*   45 */,
-       0x1C813D5C11BF1F83LL   /*   46 */,    0x8AF0E4B6D75FA169LL   /*   47 */,
-       0x33EE18A487AD9999LL   /*   48 */,    0x3C26E8EAB1C94410LL   /*   49 */,
-       0xB510102BC0A822F9LL   /*   50 */,    0x141EEF310CE6123BLL   /*   51 */,
-       0xFC65B90059DDB154LL   /*   52 */,    0xE0158640C5E0E607LL   /*   53 */,
-       0x884E079826C3A3CFLL   /*   54 */,    0x930D0D9523C535FDLL   /*   55 */,
-       0x35638D754E9A2B00LL   /*   56 */,    0x4085FCCF40469DD5LL   /*   57 */,
-       0xC4B17AD28BE23A4CLL   /*   58 */,    0xCAB2F0FC6A3E6A2ELL   /*   59 */,
-       0x2860971A6B943FCDLL   /*   60 */,    0x3DDE6EE212E30446LL   /*   61 */,
-       0x6222F32AE01765AELL   /*   62 */,    0x5D550BB5478308FELL   /*   63 */,
-       0xA9EFA98DA0EDA22ALL   /*   64 */,    0xC351A71686C40DA7LL   /*   65 */,
-       0x1105586D9C867C84LL   /*   66 */,    0xDCFFEE85FDA22853LL   /*   67 */,
-       0xCCFBD0262C5EEF76LL   /*   68 */,    0xBAF294CB8990D201LL   /*   69 */,
-       0xE69464F52AFAD975LL   /*   70 */,    0x94B013AFDF133E14LL   /*   71 */,
-       0x06A7D1A32823C958LL   /*   72 */,    0x6F95FE5130F61119LL   /*   73 */,
-       0xD92AB34E462C06C0LL   /*   74 */,    0xED7BDE33887C71D2LL   /*   75 */,
-       0x79746D6E6518393ELL   /*   76 */,    0x5BA419385D713329LL   /*   77 */,
-       0x7C1BA6B948A97564LL   /*   78 */,    0x31987C197BFDAC67LL   /*   79 */,
-       0xDE6C23C44B053D02LL   /*   80 */,    0x581C49FED002D64DLL   /*   81 */,
-       0xDD474D6338261571LL   /*   82 */,    0xAA4546C3E473D062LL   /*   83 */,
-       0x928FCE349455F860LL   /*   84 */,    0x48161BBACAAB94D9LL   /*   85 */,
-       0x63912430770E6F68LL   /*   86 */,    0x6EC8A5E602C6641CLL   /*   87 */,
-       0x87282515337DDD2BLL   /*   88 */,    0x2CDA6B42034B701BLL   /*   89 */,
-       0xB03D37C181CB096DLL   /*   90 */,    0xE108438266C71C6FLL   /*   91 */,
-       0x2B3180C7EB51B255LL   /*   92 */,    0xDF92B82F96C08BBCLL   /*   93 */,
-       0x5C68C8C0A632F3BALL   /*   94 */,    0x5504CC861C3D0556LL   /*   95 */,
-       0xABBFA4E55FB26B8FLL   /*   96 */,    0x41848B0AB3BACEB4LL   /*   97 */,
-       0xB334A273AA445D32LL   /*   98 */,    0xBCA696F0A85AD881LL   /*   99 */,
-       0x24F6EC65B528D56CLL   /*  100 */,    0x0CE1512E90F4524ALL   /*  101 */,
-       0x4E9DD79D5506D35ALL   /*  102 */,    0x258905FAC6CE9779LL   /*  103 */,
-       0x2019295B3E109B33LL   /*  104 */,    0xF8A9478B73A054CCLL   /*  105 */,
-       0x2924F2F934417EB0LL   /*  106 */,    0x3993357D536D1BC4LL   /*  107 */,
-       0x38A81AC21DB6FF8BLL   /*  108 */,    0x47C4FBF17D6016BFLL   /*  109 */,
-       0x1E0FAADD7667E3F5LL   /*  110 */,    0x7ABCFF62938BEB96LL   /*  111 */,
-       0xA78DAD948FC179C9LL   /*  112 */,    0x8F1F98B72911E50DLL   /*  113 */,
-       0x61E48EAE27121A91LL   /*  114 */,    0x4D62F7AD31859808LL   /*  115 */,
-       0xECEBA345EF5CEAEBLL   /*  116 */,    0xF5CEB25EBC9684CELL   /*  117 */,
-       0xF633E20CB7F76221LL   /*  118 */,    0xA32CDF06AB8293E4LL   /*  119 */,
-       0x985A202CA5EE2CA4LL   /*  120 */,    0xCF0B8447CC8A8FB1LL   /*  121 */,
-       0x9F765244979859A3LL   /*  122 */,    0xA8D516B1A1240017LL   /*  123 */,
-       0x0BD7BA3EBB5DC726LL   /*  124 */,    0xE54BCA55B86ADB39LL   /*  125 */,
-       0x1D7A3AFD6C478063LL   /*  126 */,    0x519EC608E7669EDDLL   /*  127 */,
-       0x0E5715A2D149AA23LL   /*  128 */,    0x177D4571848FF194LL   /*  129 */,
-       0xEEB55F3241014C22LL   /*  130 */,    0x0F5E5CA13A6E2EC2LL   /*  131 */,
-       0x8029927B75F5C361LL   /*  132 */,    0xAD139FABC3D6E436LL   /*  133 */,
-       0x0D5DF1A94CCF402FLL   /*  134 */,    0x3E8BD948BEA5DFC8LL   /*  135 */,
-       0xA5A0D357BD3FF77ELL   /*  136 */,    0xA2D12E251F74F645LL   /*  137 */,
-       0x66FD9E525E81A082LL   /*  138 */,    0x2E0C90CE7F687A49LL   /*  139 */,
-       0xC2E8BCBEBA973BC5LL   /*  140 */,    0x000001BCE509745FLL   /*  141 */,
-       0x423777BBE6DAB3D6LL   /*  142 */,    0xD1661C7EAEF06EB5LL   /*  143 */,
-       0xA1781F354DAACFD8LL   /*  144 */,    0x2D11284A2B16AFFCLL   /*  145 */,
-       0xF1FC4F67FA891D1FLL   /*  146 */,    0x73ECC25DCB920ADALL   /*  147 */,
-       0xAE610C22C2A12651LL   /*  148 */,    0x96E0A810D356B78ALL   /*  149 */,
-       0x5A9A381F2FE7870FLL   /*  150 */,    0xD5AD62EDE94E5530LL   /*  151 */,
-       0xD225E5E8368D1427LL   /*  152 */,    0x65977B70C7AF4631LL   /*  153 */,
-       0x99F889B2DE39D74FLL   /*  154 */,    0x233F30BF54E1D143LL   /*  155 */,
-       0x9A9675D3D9A63C97LL   /*  156 */,    0x5470554FF334F9A8LL   /*  157 */,
-       0x166ACB744A4F5688LL   /*  158 */,    0x70C74CAAB2E4AEADLL   /*  159 */,
-       0xF0D091646F294D12LL   /*  160 */,    0x57B82A89684031D1LL   /*  161 */,
-       0xEFD95A5A61BE0B6BLL   /*  162 */,    0x2FBD12E969F2F29ALL   /*  163 */,
-       0x9BD37013FEFF9FE8LL   /*  164 */,    0x3F9B0404D6085A06LL   /*  165 */,
-       0x4940C1F3166CFE15LL   /*  166 */,    0x09542C4DCDF3DEFBLL   /*  167 */,
-       0xB4C5218385CD5CE3LL   /*  168 */,    0xC935B7DC4462A641LL   /*  169 */,
-       0x3417F8A68ED3B63FLL   /*  170 */,    0xB80959295B215B40LL   /*  171 */,
-       0xF99CDAEF3B8C8572LL   /*  172 */,    0x018C0614F8FCB95DLL   /*  173 */,



Home | Main Index | Thread Index | Old Index