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-05-30 11:29:20 -07:00
2019-07-17 09:42:03 -07:00
2018-11-23 11:45:34 +09:00
2019-07-17 09:42:03 -07:00
2019-07-25 22:10:05 -07:00
2019-10-23 21:07:28 -07:00
2019-11-20 20:31:38 +01:00
2019-10-07 09:46:22 -07:00
2019-11-01 14:33:07 -07:00
2019-05-21 11:28:39 +02:00
2019-12-01 13:26:18 -08:00
2020-01-16 15:18:12 +08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:35 -07:00
2019-11-01 14:36:44 -07:00
2019-10-08 10:54:44 -07:00
2019-12-04 19:44:14 -08:00
2019-11-20 20:31:38 +01:00
2019-08-08 15:33:16 -07:00
2019-12-01 14:00:59 -08:00
2019-11-22 10:51:22 -08:00
2019-08-24 15:13:22 +01:00
2019-05-30 11:29:20 -07:00
2019-10-31 15:03:10 -07:00
2019-11-11 10:45:00 -08:00
2019-11-11 10:44:56 -08:00
2019-11-11 10:45:01 -08:00
2019-11-11 10:56:14 -08:00
2019-11-28 11:16:43 -08:00
2019-08-23 14:47:13 +01:00
2019-06-05 17:37:17 +02:00
2019-08-23 14:47:21 +01:00
2019-11-11 10:43:13 -08:00
2018-07-17 09:40:17 -07:00
2019-11-28 11:16:43 -08:00
2019-06-05 17:37:18 +02:00
2019-06-08 13:09:31 -07:00
2019-10-03 15:47:17 -07:00
2019-06-08 13:09:31 -07:00
2019-10-07 10:58:53 -07:00
2019-11-14 13:09:37 +08:00
2019-05-30 11:29:20 -07:00
2019-10-09 14:55:57 -07:00
2019-11-25 17:42:56 -08:00
2019-11-01 14:58:56 -07:00
2019-10-16 10:39:00 +02:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:29:53 -07:00
2019-10-07 09:43:13 -07:00
2019-06-08 13:09:31 -07:00
2019-11-11 10:46:53 -08:00
2019-05-30 11:26:35 -07:00
2019-05-30 11:32:33 -07:00
2019-11-01 14:58:56 -07:00
2019-11-28 11:16:43 -08:00
2019-10-09 15:53:16 -07:00
2019-11-25 19:49:58 -08:00
2019-10-07 09:43:13 -07:00