]> asedeno.scripts.mit.edu Git - linux.git/commit
fs: cifs: move from the crypto cipher API to the new DES library interface
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 15 Aug 2019 09:01:12 +0000 (12:01 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 22 Aug 2019 04:57:34 +0000 (14:57 +1000)
commit9a394d1208147715b8a365f44b4e7bfbb2094748
tree7126f454de1e419a794dcd87c5c2d4fca52c9793
parent18fbe0da8e98fe167fbfe1757003e2a2a74d24f3
fs: cifs: move from the crypto cipher API to the new DES library interface

Some legacy code in the CIFS driver uses single DES to calculate
some password hash, and uses the crypto cipher API to do so. Given
that there is no point in invoking an accelerated cipher for doing
56-bit symmetric encryption on a single 8-byte block of input, the
flexibility of the crypto cipher API does not add much value here,
and so we're much better off using a library call into the generic
C implementation.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
fs/cifs/Kconfig
fs/cifs/cifsfs.c
fs/cifs/smbencrypt.c