[git] GCRYPT - branch, master, updated. libgcrypt-1.7.3-59-ga351fbd

by Werner Koch cvs at cvs.gnupg.org
Fri Jan 27 09:28:30 CET 2017


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU crypto library".

The branch, master has been updated
       via  a351fbde8548ce3f57298c618426f043844fbc78 (commit)
       via  8bbefa2ab283dd1443cb7453749aa0b51aec6ec4 (commit)
      from  39b9302da5d08bd52688d20befe626fee0b6c41d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a351fbde8548ce3f57298c618426f043844fbc78
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Jan 27 09:16:31 2017 +0100

    w32: New envvar GCRYPT_RNDW32_DBG.
    
    * random/rndw32.c (_gcry_rndw32_gather_random): Use getenv to set
    DEBUG_ME.
    
    Signed-off-by: Werner Koch <wk at gnupg.org>

diff --git a/doc/gcrypt.texi b/doc/gcrypt.texi
index 80c369b..a905d0f 100644
--- a/doc/gcrypt.texi
+++ b/doc/gcrypt.texi
@@ -5388,6 +5388,13 @@ for entropy.  On some older Windows systems this could help to speed
 up the creation of random numbers but also decreases the amount of
 data used to init the random number generator.
 
+ at item GCRYPT_RNDW32_DBG
+ at cindex GCRYPT_RNDW32_DBG
+Setting the value of this variable to a positive integer logs
+information about the Windows entropy gatherer using the standard log
+interface.
+
+
 @item HOME
 @cindex HOME
 This is used to locate the socket to connect to the EGD random
diff --git a/random/rndw32.c b/random/rndw32.c
index de6e783..8c507ac 100644
--- a/random/rndw32.c
+++ b/random/rndw32.c
@@ -245,12 +245,13 @@ static RTLGENRANDOM        pRtlGenRandom;
 static int system_rng_available; /* Whether a system RNG is available.  */
 static HCRYPTPROV hRNGProv;      /* Handle to Intel RNG CSP. */
 
-static int debug_me;  /* Debug flag.  */
+/* The debug flag.  Debugging is enabled if the value of the envvar
+ * GCRY_RNDW32_DBG is a postive number.*/
+static int debug_me;
 
 static int system_is_w2000;     /* True if running on W2000.  */
 
 
-
 
 /* Try and connect to the system RNG if there's one present. */
 static void
@@ -787,11 +788,16 @@ _gcry_rndw32_gather_random (void (*add)(const void*, size_t,
   if (!is_initialized)
     {
       OSVERSIONINFO osvi = { sizeof( osvi ) };
+      const char *s;
+
+      if ((s = getenv ("GCRYPT_RNDW32_DBG")) && atoi (s) > 0)
+        debug_me = 1;
 
       GetVersionEx( &osvi );
       if (osvi.dwPlatformId != VER_PLATFORM_WIN32_NT)
         log_fatal ("can only run on a Windows NT platform\n" );
       system_is_w2000 = (osvi.dwMajorVersion == 5 && osvi.dwMinorVersion == 0);
+
       init_system_rng ();
       is_initialized = 1;
     }

commit 8bbefa2ab283dd1443cb7453749aa0b51aec6ec4
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Jan 27 09:13:07 2017 +0100

    Update NEWS with release info from 1.7.4 to 1.7.6.
    
    --

diff --git a/NEWS b/NEWS
index 179b18d..995aac3 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,22 @@ Noteworthy changes in version 1.8.0 (unreleased)  [C21/A1/R_]
    - GCRYCTL_PRINT_CONFIG does now also print build information for
      libgpg-error and the used compiler version.
 
+ * Performance:
+
+   - More ARMv8/AArch32 improvements for AES, GCM, SHA-256, and SHA-1.
+     [also in 1.7.4]
+
+   - Add ARMv8/AArch32 assembly implementation for Twofish and
+     Camellia.  [also in 1.7.4]
+
+   - Add bulk processing implementation for ARMv8/AArch32.
+     [also in 1.7.4]
+
+   - Add Stribog OIDs.  [also in 1.7.4]
+
+   - Improve the DRBG performance and sync the code with the Linux
+     version.  [also in 1.7.4]
+
  * Internal changes:
 
    - Libgpg-error 1.25 is now required.  This avoids stalling of nPth
@@ -26,54 +42,33 @@ Noteworthy changes in version 1.8.0 (unreleased)  [C21/A1/R_]
      allocated as needed.  These new pools are not protected against
      being swapped out (mlock can't be used).  However, these days
      this is considered a minor issue and can easily be mitigated by
-     using encrypted swap space.
-
-
- * Interface changes relative to the 1.7.0 release:
-   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-   GCRYCTL_REINIT_SYSCALL_CLAMP    NEW macro.
-
-
-Noteworthy changes in version 1.7.5 (2016-12-15)  [C21/A1/R5]
-------------------------------------------------
+     using encrypted swap space.  [also in 1.7.4]
 
  * Bug fixes:
 
-   - Fix regression in mlock detection [bug#2870].
+   - Fix AES CTR self-check detected failure in the SSSE3 based
+     implementation.  [also in 1.7.6]
 
+   - Remove gratuitous select before the getrandom syscall.
+     [also in 1.7.6]
 
-Noteworthy changes in version 1.7.4 (2016-12-09)  [C21/A1/R4]
-------------------------------------------------
+   - Fix regression in mlock detection.  [bug#2870] [also in 1.7.5]
 
- * Performance:
+   - Fix GOST 28147 CryptoPro-B S-box.   [also in 1.7.4]
 
-   - More ARMv8/AArch32 improvements for AES, GCM, SHA-256, and SHA-1.
-
-   - Add ARMv8/AArch32 assembly implementation for Twofish and
-     Camellia.
-
-   - Add bulk processing implementation for ARMv8/AArch32.
-
-   - Add Stribog OIDs.
-
-   - Improve the DRBG performance and sync the code with the Linux
-     version.
-
- * Internal changes:
+   - Fix error code handling of mlock calls.  [also in 1.7.4]
 
-   - When secure memory is requested by the MPI functions or by
-     gcry_xmalloc_secure, they do not anymore lead to a fatal error if
-     the secure memory pool is used up.  Instead new pools are
-     allocated as needed.  These new pools are not protected against
-     being swapped out (mlock can't be used).  However, these days
-     this is considered a minor issue and can easily be mitigated by
-     using encrypted swap space.
 
- * Bug fixes:
+ * Interface changes relative to the 1.7.0 release:
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+   GCRYCTL_REINIT_SYSCALL_CLAMP    NEW macro.
 
-   - Fix GOST 28147 CryptoPro-B S-box.
 
-   - Fix error code handling of mlock calls.
+ * Release dates of 1.7.x versions:
+   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+   Version 1.7.6 (2017-01-18)  [C21/A1/R6]
+   Version 1.7.5 (2016-12-15)  [C21/A1/R5]
+   Version 1.7.4 (2016-12-09)  [C21/A1/R4]
 
 
 Noteworthy changes in version 1.7.3 (2016-08-17)  [C21/A1/R3]

-----------------------------------------------------------------------

Summary of changes:
 NEWS            | 69 ++++++++++++++++++++++++++-------------------------------
 doc/gcrypt.texi |  7 ++++++
 random/rndw32.c | 10 +++++++--
 3 files changed, 47 insertions(+), 39 deletions(-)


hooks/post-receive
-- 
The GNU crypto library
http://git.gnupg.org


_______________________________________________
Gnupg-commits mailing list
Gnupg-commits at gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-commits




More information about the Gcrypt-devel mailing list