]> git.baikalelectronics.ru Git - kernel.git/commit
ppp: mppe: switch to RC4 library interface
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Wed, 12 Jun 2019 16:19:58 +0000 (18:19 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 20 Jun 2019 06:19:55 +0000 (14:19 +0800)
commite7eee881057a2be5814d03d2242caf9b94fe1b4b
tree9a887bfe482b57bc4a54b4b7d98c998ad5a55c46
parent1e347282edbb536339a2bd82b0312ba910af009c
ppp: mppe: switch to RC4 library interface

The MPPE code uses the sync skcipher to invoke the ecb(arc4) skcipher,
of which only a single generic C code implementation exists. This means
that going through all the trouble of using scatterlists etc buys us
very little, and we're better off just invoking the arc4 library directly.

Note that the SHA1 shash used by this driver has several accelerated
implementations for various architectures, so retaining that part does
make sense.

Cc: linux-ppp@vger.kernel.org
Cc: Paul Mackerras <paulus@samba.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/net/ppp/Kconfig
drivers/net/ppp/ppp_mppe.c