commit | 818bac55ef59c2fdd5a3f5047977eb925aa567c4 | [log] [tgz] |
---|---|---|
author | Hanno Becker <hanno.becker@arm.com> | Fri Oct 26 09:13:26 2018 +0100 |
committer | Simon Butcher <simon.butcher@arm.com> | Tue Feb 19 17:59:57 2019 +0000 |
tree | abffdef4fcf2240e55c2da48894025ada8c79a97 | |
parent | 996033e3dfce2900eca72c606fb7f3821f0a82f5 [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 )