UPSTREAM: crypto: chacha20 - use rol32() macro from bitops.h
authorEric Biggers <ebiggers@google.com>
Mon, 1 Jan 2018 00:02:45 +0000 (18:02 -0600)
committerEric Biggers <ebiggers@google.com>
Wed, 5 Dec 2018 20:30:44 +0000 (12:30 -0800)
commitce1b79448b636a3e054942227a94c340fe762791
treef0938a70f02bffd1705f031401cab8cb7a5462ba
parent6c6087bd8b1ff38e5403c27bce5518146231ae80
UPSTREAM: crypto: chacha20 - use rol32() macro from bitops.h

For chacha20_block(), use the existing 32-bit left-rotate function
instead of defining one ourselves.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
(cherry picked from commit 7660b1fb367eb3723b48d3980451fc4f25a05021)
Bug: 112008522
Test: As series, see Ic61c13b53facfd2173065be715a7ee5f3af8760b
Change-Id: I694106676f58f40c20de1f47d60f873d2a7f6536
Signed-off-by: Eric Biggers <ebiggers@google.com>
lib/chacha20.c