diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-10-14 12:30:10 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-10-14 12:30:10 -0400 |
commit | 9013cb60fb1b28537a185fc98486d74e7cf39ea1 (patch) | |
tree | 992fd047b43a6142c9d0d107eb5eb60baa3cca27 /cham.cpp | |
parent | 6f36f0db06d3312ae17b8b89c51ff0e2f10352f1 (diff) | |
download | cryptopp-git-9013cb60fb1b28537a185fc98486d74e7cf39ea1.tar.gz |
Fix semicolons yet again (GH #889)
So it looks like sed added a '\r' between the closing paren and the semi. Grepping for '^;' failed because the '\r' was considered part of the previous line, so it showed no hits. I finally had to write a C program to properly identify and fix those damn stray semicolons.
Diffstat (limited to 'cham.cpp')
-rw-r--r-- | cham.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -45,11 +45,11 @@ using CryptoPP::rotrConstant; template <unsigned int RR, unsigned int KW, class T>
inline void CHAM_EncRound(T x[4], const T k[KW], unsigned int i)
{
- CRYPTOPP_CONSTANT(IDX0 = (RR+0) % 4)
;
- CRYPTOPP_CONSTANT(IDX1 = (RR+1) % 4)
;
- CRYPTOPP_CONSTANT(IDX3 = (RR+3+1) % 4)
;
- CRYPTOPP_CONSTANT(R1 = (RR % 2 == 0) ? 1 : 8)
;
- CRYPTOPP_CONSTANT(R2 = (RR % 2 == 0) ? 8 : 1)
;
+ CRYPTOPP_CONSTANT(IDX0 = (RR+0) % 4);
+ CRYPTOPP_CONSTANT(IDX1 = (RR+1) % 4);
+ CRYPTOPP_CONSTANT(IDX3 = (RR+3+1) % 4);
+ CRYPTOPP_CONSTANT(R1 = (RR % 2 == 0) ? 1 : 8);
+ CRYPTOPP_CONSTANT(R2 = (RR % 2 == 0) ? 8 : 1);
// Follows conventions in the ref impl
const T kk = k[i % KW];
@@ -79,11 +79,11 @@ inline void CHAM_EncRound(T x[4], const T k[KW], unsigned int i) template <unsigned int RR, unsigned int KW, class T>
inline void CHAM_DecRound(T x[4], const T k[KW], unsigned int i)
{
- CRYPTOPP_CONSTANT(IDX0 = (RR+0) % 4)
;
- CRYPTOPP_CONSTANT(IDX1 = (RR+1) % 4)
;
- CRYPTOPP_CONSTANT(IDX3 = (RR+3+1) % 4)
;
- CRYPTOPP_CONSTANT(R1 = (RR % 2 == 0) ? 8 : 1)
;
- CRYPTOPP_CONSTANT(R2 = (RR % 2 == 0) ? 1 : 8)
;
+ CRYPTOPP_CONSTANT(IDX0 = (RR+0) % 4);
+ CRYPTOPP_CONSTANT(IDX1 = (RR+1) % 4);
+ CRYPTOPP_CONSTANT(IDX3 = (RR+3+1) % 4);
+ CRYPTOPP_CONSTANT(R1 = (RR % 2 == 0) ? 8 : 1);
+ CRYPTOPP_CONSTANT(R2 = (RR % 2 == 0) ? 1 : 8);
// Follows conventions in the ref impl
const T kk = k[i % KW];
|