commit | 3ac21aca9b7afbbba2881844856b2e7421e76f0d | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Oct 26 09:13:26 2018 +0100 |
committer | Gilles Peskine <Gilles.Peskine@arm.com> | Wed Apr 24 10:52:45 2019 +0200 |
tree | c650064d4b06b22e1734d6d442554ada508fe793 | |
parent | ee60034a60d944d6abfa3a5f8a6767528040a2e1 [diff] [blame] |
Add further missing brackets around macro parameters
diff --git a/library/sha256.c b/library/sha256.c index 09d3fe3..2dc0e1a 100644 --- a/library/sha256.c +++ b/library/sha256.c
@@ -193,8 +193,8 @@ #define P(a,b,c,d,e,f,g,h,x,K) \ do \ { \ - temp1 = (h) + S3(e) + F1(e,f,g) + (K) + (x); \ - temp2 = S2(a) + F0(a,b,c); \ + temp1 = (h) + S3(e) + F1((e),(f),(g)) + (K) + (x); \ + temp2 = S2(a) + F0((a),(b),(c)); \ (d) += temp1; (h) = temp1 + temp2; \ } while( 0 )