Jason A. Donenfeld
31899908a0
crypto: {arm,arm64,mips}/poly1305 - remove redundant non-reduction from emit
...
This appears to be some kind of copy and paste error, and is actually
dead code.
Pre: f = 0 ⇒ (f >> 32) = 0
f = (f >> 32) + le32_to_cpu(digest[0]);
Post: 0 ≤ f < 2³²
put_unaligned_le32(f, dst);
Pre: 0 ≤ f < 2³² ⇒ (f >> 32) = 0
f = (f >> 32) + le32_to_cpu(digest[1]);
Post: 0 ≤ f < 2³²
put_unaligned_le32(f, dst + 4);
Pre: 0 ≤ f < 2³² ⇒ (f >> 32) = 0
f = (f >> 32) + le32_to_cpu(digest[2]);
Post: 0 ≤ f < 2³²
put_unaligned_le32(f, dst + 8);
Pre: 0 ≤ f < 2³² ⇒ (f >> 32) = 0
f = (f >> 32) + le32_to_cpu(digest[3]);
Post: 0 ≤ f < 2³²
put_unaligned_le32(f, dst + 12);
Therefore this sequence is redundant. And Andy's code appears to handle
misalignment acceptably.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Tested-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-01-16 15:18:12 +08:00
..
2019-12-04 19:44:14 -08:00
2019-12-04 19:06:18 -08:00
2020-01-16 15:18:12 +08:00
2020-01-16 15:18:12 +08:00
2019-12-04 19:44:15 -08:00
2019-11-28 11:16:43 -08:00
2019-11-04 18:12:55 +01:00
2019-12-02 17:35:04 -08:00
2019-12-06 10:28:09 -08:00
2019-12-05 12:20:42 -08:00
2019-12-04 19:44:15 -08:00
2020-01-16 15:18:12 +08:00
2019-12-04 19:44:15 -08:00
2019-12-01 13:26:18 -08:00
2019-12-02 17:18:43 -08:00
2019-12-04 19:44:15 -08:00
2020-01-09 11:30:53 +08:00
2019-12-04 11:07:00 -08:00
2020-01-09 11:30:53 +08:00
2019-12-04 10:48:09 -08:00
2020-01-09 11:30:53 +08:00
2019-12-04 19:44:15 -08:00
2019-11-28 10:57:12 -08:00
2020-01-16 15:18:12 +08:00
2019-12-04 19:44:14 -08:00
2019-12-04 19:44:12 -08:00