[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gcrypt-devel
Subject:    [git] GCRYPT - branch, master, updated. libgcrypt-1.7.3-74-g75d91ff
From:       cvs () cvs ! gnupg ! org (by Justus Winter)
Date:       2017-02-07 9:30:24
Message-ID: E1cb26U-0000IE-Ua () lists ! gnupg ! org
[Download RAW message or body]

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  75d91ffeaf83098ade325bb3b6b2c8a76eb1f6a6 (commit)
      from  d1ee9a660571ce4a998c9ab2299d4f2419f99127 (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 75d91ffeaf83098ade325bb3b6b2c8a76eb1f6a6
Author: Justus Winter <justus@g10code.com>
Date:   Tue Feb 7 10:20:58 2017 +0100

    Fix building with a pre C99 compiler.
    
    * cipher/cipher-cfb.c (_gcry_cipher_cfb8_encrypt): Move the
    declaration of 'i' out of the loop.
    (_gcry_cipher_cfb8_decrypt): Likewise.
    --
    Fixes build on OpenBSD.
    
    Fixes-commit: d1ee9a660571ce4a998c9ab2299d4f2419f99127
    Signed-off-by: Justus Winter <justus@g10code.com>

diff --git a/cipher/cipher-cfb.c b/cipher/cipher-cfb.c
index cca5c1f..c888e70 100644
--- a/cipher/cipher-cfb.c
+++ b/cipher/cipher-cfb.c
@@ -251,6 +251,8 @@ _gcry_cipher_cfb8_encrypt (gcry_cipher_hd_t c,
 
   while ( inbuflen > 0)
     {
+      int i;
+
       /* Encrypt the IV. */
       nburn = enc_fn ( &c->context.c, c->lastiv, c->u_iv.iv );
       burn = nburn > burn ? nburn : burn;
@@ -258,7 +260,7 @@ _gcry_cipher_cfb8_encrypt (gcry_cipher_hd_t c,
       outbuf[0] = c->lastiv[0] ^ inbuf[0];
 
       /* Bitshift iv by 8 bit to the left */
-      for (int i = 0; i < blocksize-1; i++)
+      for (i = 0; i < blocksize-1; i++)
         c->u_iv.iv[i] = c->u_iv.iv[i+1];
 
       /* append cipher text to iv */
@@ -293,6 +295,8 @@ _gcry_cipher_cfb8_decrypt (gcry_cipher_hd_t c,
 
   while (inbuflen > 0)
     {
+      int i;
+
       /* Encrypt the IV. */
       nburn = enc_fn ( &c->context.c, c->lastiv, c->u_iv.iv );
       burn = nburn > burn ? nburn : burn;
@@ -304,7 +308,7 @@ _gcry_cipher_cfb8_decrypt (gcry_cipher_hd_t c,
       outbuf[0] = inbuf[0] ^ c->lastiv[0];
 
       /* Bitshift iv by 8 bit to the left */
-      for (int i = 0; i < blocksize-1; i++)
+      for (i = 0; i < blocksize-1; i++)
         c->u_iv.iv[i] = c->u_iv.iv[i+1];
 
       c->u_iv.iv[blocksize-1] = appendee;

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

Summary of changes:
 cipher/cipher-cfb.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)


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


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


_______________________________________________
Gcrypt-devel mailing list
Gcrypt-devel@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gcrypt-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic