md4/md5: macros should not include the line following them
authorPatrick Steuer <patrick.steuer@de.ibm.com>
Thu, 31 Oct 2019 13:17:31 +0000 (14:17 +0100)
committerPatrick Steuer <patrick.steuer@de.ibm.com>
Fri, 1 Nov 2019 14:59:40 +0000 (15:59 +0100)
Signed-off-by: Patrick Steuer <patrick.steuer@de.ibm.com>
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/10311)

(cherry picked from commit 351ba5bd27645d5b5a2bc643b2709bd30bcdf09c)

crypto/md4/md4_local.h
crypto/md5/md5_local.h

index 391fee8869e8fe03fd1d9f1cd040057494c5f5d9..5f05720e97691a910c44b0c9ec05de43cd92e700 100644 (file)
@@ -53,7 +53,7 @@ void md4_block_data_order(MD4_CTX *c, const void *p, size_t num);
 
 #define R1(a,b,c,d,k,s,t) { \
         a+=((k)+(t)+G((b),(c),(d))); \
-        a=ROTATE(a,s); };\
+        a=ROTATE(a,s); };
 
 #define R2(a,b,c,d,k,s,t) { \
         a+=((k)+(t)+H((b),(c),(d))); \
index 9e537ed15b1fa57d4e555c857067341cf558f49b..b0087bea81c4b97d620d92e537fd11f4bdc5d5f9 100644 (file)
@@ -62,7 +62,7 @@ void md5_block_data_order(MD5_CTX *c, const void *p, size_t num);
 #define R0(a,b,c,d,k,s,t) { \
         a+=((k)+(t)+F((b),(c),(d))); \
         a=ROTATE(a,s); \
-        a+=b; };\
+        a+=b; };
 
 #define R1(a,b,c,d,k,s,t) { \
         a+=((k)+(t)+G((b),(c),(d))); \