aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-12-03 12:37:40 -0500
committerJack Lloyd <[email protected]>2017-12-03 12:37:40 -0500
commit47a8b46b63127829ceb1fd8cd42aba55c0fa8dd0 (patch)
tree26c4a64c38013e09eb42fea91755118275cb5908
parent4030efb9af679fde3b259b46a8bb9163d75bb9c2 (diff)
Code formatting tweak in Poly1305 code
-rw-r--r--src/lib/mac/poly1305/poly1305.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/mac/poly1305/poly1305.cpp b/src/lib/mac/poly1305/poly1305.cpp
index 639aa88c0..b91222092 100644
--- a/src/lib/mac/poly1305/poly1305.cpp
+++ b/src/lib/mac/poly1305/poly1305.cpp
@@ -72,11 +72,11 @@ void poly1305_blocks(secure_vector<uint64_t>& X, const uint8_t *m, size_t blocks
uint128_t d2 = uint128_t(h0) * r2 + uint128_t(h1) * r1 + uint128_t(h2) * r0;
/* (partial) h %= p */
- uint64_t c = carry_shift(d0, 44); h0 = d0 & 0xfffffffffff;
- d1 += c; c = carry_shift(d1, 44); h1 = d1 & 0xfffffffffff;
- d2 += c; c = carry_shift(d2, 42); h2 = d2 & 0x3ffffffffff;
- h0 += c * 5; c = carry_shift(h0, 44); h0 = h0 & 0xfffffffffff;
- h1 += c;
+ uint64_t c = carry_shift(d0, 44); h0 = d0 & 0xfffffffffff;
+ d1 += c; c = carry_shift(d1, 44); h1 = d1 & 0xfffffffffff;
+ d2 += c; c = carry_shift(d2, 42); h2 = d2 & 0x3ffffffffff;
+ h0 += c * 5; c = carry_shift(h0, 44); h0 = h0 & 0xfffffffffff;
+ h1 += c;
m += 16;
}