pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/bglibs Rename hmac to bghmac. Bump revision.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2c8e4716468f
branches:  trunk
changeset: 356092:2c8e4716468f
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Sun Dec 18 21:39:58 2016 +0000

description:
Rename hmac to bghmac. Bump revision.

diffstat:

 devel/bglibs/Makefile                           |   4 ++--
 devel/bglibs/distinfo                           |   9 ++++++++-
 devel/bglibs/patches/patch-crypto_hmac-md5.c    |  13 +++++++++++++
 devel/bglibs/patches/patch-crypto_hmac-sha1.c   |  13 +++++++++++++
 devel/bglibs/patches/patch-crypto_hmac-sha256.c |  13 +++++++++++++
 devel/bglibs/patches/patch-crypto_hmac-sha384.c |  13 +++++++++++++
 devel/bglibs/patches/patch-crypto_hmac-sha512.c |  13 +++++++++++++
 devel/bglibs/patches/patch-crypto_hmac.c        |  13 +++++++++++++
 devel/bglibs/patches/patch-crypto_hmac.h        |  18 ++++++++++++++++++
 9 files changed, 106 insertions(+), 3 deletions(-)

diffs (158 lines):

diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/Makefile
--- a/devel/bglibs/Makefile     Sun Dec 18 21:34:25 2016 +0000
+++ b/devel/bglibs/Makefile     Sun Dec 18 21:39:58 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.29 2016/07/09 06:38:05 wiz Exp $
+# $NetBSD: Makefile,v 1.30 2016/12/18 21:39:58 joerg Exp $
 #
 
 DISTNAME=              bglibs-1.106
-PKGREVISION=           5
+PKGREVISION=           6
 CATEGORIES=            devel
 MASTER_SITES=          ${HOMEPAGE}
 
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/distinfo
--- a/devel/bglibs/distinfo     Sun Dec 18 21:34:25 2016 +0000
+++ b/devel/bglibs/distinfo     Sun Dec 18 21:39:58 2016 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2015/11/03 03:27:16 agc Exp $
+$NetBSD: distinfo,v 1.25 2016/12/18 21:39:58 joerg Exp $
 
 SHA1 (bglibs-1.106.tar.gz) = 5f1914299c0f91a3d5c83bf6c8c1d0b824ffe624
 RMD160 (bglibs-1.106.tar.gz) = d3ac009a0b9196701ff90b6cddbd58596ab480a9
@@ -6,3 +6,10 @@
 Size (bglibs-1.106.tar.gz) = 481564 bytes
 SHA1 (patch-ab) = c23a0d4b20bd485a599ba445f6957f10190bdfa2
 SHA1 (patch-ac) = 1b75516a494dbc0c7943bc89b2eaf2f9668048fd
+SHA1 (patch-crypto_hmac-md5.c) = 1982dfb84b42f0e2b3aa7a59664de7694dd65038
+SHA1 (patch-crypto_hmac-sha1.c) = aebb2be7721a38bd1c15fde32831ae6966b8b705
+SHA1 (patch-crypto_hmac-sha256.c) = 578e1c36527d463a8fcca86c32604b0fe94b6b81
+SHA1 (patch-crypto_hmac-sha384.c) = 1ed746c62fcf717d4b2978f55b78f6bec781e077
+SHA1 (patch-crypto_hmac-sha512.c) = 0fddbb7d34dd66197c72c61fe21da8eabb9bc267
+SHA1 (patch-crypto_hmac.c) = 65c1f526d3d73734fc431210088ce4f26a42b313
+SHA1 (patch-crypto_hmac.h) = 1ae05a3160859069160ff1a17a7ae460b622fa12
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac-md5.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac-md5.c      Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-crypto_hmac-md5.c,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac-md5.c.orig     2016-12-18 09:59:13.731995800 +0000
++++ crypto/hmac-md5.c
+@@ -65,7 +65,7 @@ static void HMACTest(const char* key, co
+   const str data_str = { (char*)data, strlen(data), 0 };
+   unsigned char digest[128/8];
+   unsigned i;
+-  hmac(&hmac_md5, &key_str, &data_str, digest);
++  bghmac(&hmac_md5, &key_str, &data_str, digest);
+   printf("HMAC (%d,%d) = ", key_str.len, data_str.len);
+   for (i = 0; i < sizeof digest; ++i) printf("%02x", digest[i]);
+   printf("\n");
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac-sha1.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac-sha1.c     Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-crypto_hmac-sha1.c,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac-sha1.c.orig    2016-12-18 09:59:10.547412663 +0000
++++ crypto/hmac-sha1.c
+@@ -49,7 +49,7 @@ static void test_hmac(const char* key, c
+   const str data_str = { (char*)data, strlen(data), 0 };
+   unsigned char digest[SHA1_DIGEST_LENGTH];
+   unsigned i;
+-  hmac(&hmac_sha1, &key_str, &data_str, digest);
++  bghmac(&hmac_sha1, &key_str, &data_str, digest);
+   for (i = 0; i < sizeof digest; ++i)
+     obuf_putXw(&outbuf, digest[i], 2, '0');
+   NL();
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac-sha256.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac-sha256.c   Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-crypto_hmac-sha256.c,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac-sha256.c.orig  2016-12-18 09:59:08.038143186 +0000
++++ crypto/hmac-sha256.c
+@@ -45,7 +45,7 @@ static void test_hmac(const char* key, c
+   const str data_str = { (char*)data, strlen(data), 0 };
+   unsigned char digest[SHA256_DIGEST_LENGTH];
+   unsigned i;
+-  hmac(&hmac_sha256, &key_str, &data_str, digest);
++  bghmac(&hmac_sha256, &key_str, &data_str, digest);
+   for (i = 0; i < sizeof digest; ++i)
+     obuf_putxw(&outbuf, digest[i], 2, '0');
+   obuf_endl(&outbuf);
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac-sha384.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac-sha384.c   Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-crypto_hmac-sha384.c,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac-sha384.c.orig  2016-12-18 09:59:03.209209425 +0000
++++ crypto/hmac-sha384.c
+@@ -46,7 +46,7 @@ static void test_hmac(const char* key, c
+   const str data_str = { (char*)data, strlen(data), 0 };
+   unsigned char digest[SHA384_DIGEST_LENGTH];
+   unsigned i;
+-  hmac(&hmac_sha384, &key_str, &data_str, digest);
++  bghmac(&hmac_sha384, &key_str, &data_str, digest);
+   for (i = 0; i < sizeof digest; ++i)
+     obuf_putxw(&outbuf, digest[i], 2, '0');
+   obuf_endl(&outbuf);
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac-sha512.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac-sha512.c   Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-crypto_hmac-sha512.c,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac-sha512.c.orig  2016-12-18 09:59:00.448666869 +0000
++++ crypto/hmac-sha512.c
+@@ -46,7 +46,7 @@ static void test_hmac(const char* key, c
+   const str data_str = { (char*)data, strlen(data), 0 };
+   unsigned char digest[SHA512_DIGEST_LENGTH];
+   unsigned i;
+-  hmac(&hmac_sha512, &key_str, &data_str, digest);
++  bghmac(&hmac_sha512, &key_str, &data_str, digest);
+   for (i = 0; i < sizeof digest; ++i)
+     obuf_putxw(&outbuf, digest[i], 2, '0');
+   obuf_endl(&outbuf);
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac.c  Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-crypto_hmac.c,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac.c.orig 2016-12-18 09:58:18.626636990 +0000
++++ crypto/hmac.c
+@@ -101,7 +101,7 @@ void hmac_finish(const struct hmac_contr
+  * Authentication) according to RFC 2104, using a secure hash given in
+  * the control block.
+  */
+-void hmac(const struct hmac_control_block* hcb,
++void bghmac(const struct hmac_control_block* hcb,
+         const str* secret,
+         const str* nonce,
+         void* output)
diff -r 66886a76dd6a -r 2c8e4716468f devel/bglibs/patches/patch-crypto_hmac.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/bglibs/patches/patch-crypto_hmac.h  Sun Dec 18 21:39:58 2016 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-crypto_hmac.h,v 1.1 2016/12/18 21:39:58 joerg Exp $
+
+--- crypto/hmac.h.orig 2016-12-18 10:43:45.246910135 +0000
++++ crypto/hmac.h
+@@ -34,9 +34,9 @@ extern void hmac_finish(const struct hma
+                       const void* midstate,
+                       const struct str* nonce,
+                       void* outout);
+-extern void hmac(const struct hmac_control_block* hcb,
+-               const struct str* secret,
+-               const struct str* nonce,
+-               void* output);
++extern void bghmac(const struct hmac_control_block* hcb,
++                 const struct str* secret,
++                 const struct str* nonce,
++                 void* output);
+ 
+ #endif



Home | Main Index | Thread Index | Old Index