[PATCH] Fix tail handling in buf_xor_1

Jussi Kivilinna jussi.kivilinna at iki.fi
Fri May 1 17:51:42 CEST 2015


* cipher/bufhelp.h (buf_xor_1): Increment source pointer at tail
handling.
--

Signed-off-by: Jussi Kivilinna <jussi.kivilinna at iki.fi>
---
 cipher/bufhelp.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cipher/bufhelp.h b/cipher/bufhelp.h
index fb87939..c1aa52e 100644
--- a/cipher/bufhelp.h
+++ b/cipher/bufhelp.h
@@ -162,7 +162,7 @@ do_bytes:
 #endif
   /* Handle tail.  */
   for (; len; len--)
-    *dst++ ^= *src;
+    *dst++ ^= *src++;
 }
 
 




More information about the Gcrypt-devel mailing list