summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.h
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-08-15 12:00:43 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2019-08-22 14:39:37 +1000
commite43050c598f759993e21e64b0ad939fcf9eaec77 (patch)
tree3380896fc22486b57677a1bdf3e3a0f2b7698dfe /crypto/tcrypt.h
parent64095d77e80e74b96e57157522834eb845314d4c (diff)
downloadlinux-crypto-e43050c598f759993e21e64b0ad939fcf9eaec77.tar.gz
linux-crypto-e43050c598f759993e21e64b0ad939fcf9eaec77.zip
crypto: des/3des_ede - add new helpers to verify keys
The recently added helper routine to perform key strength validation of triple DES keys is slightly inadequate, since it comes in two versions, neither of which are highly useful for anything other than skciphers (and many drivers still use the older blkcipher interfaces). So let's add a new helper and, considering that this is a helper function that is only intended to be used by crypto code itself, put it in a new des.h header under crypto/internal. While at it, implement a similar helper for single DES, so that we can start replacing the pattern of calling des_ekey() into a temp buffer that occurs in many drivers in drivers/crypto. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.h')
0 files changed, 0 insertions, 0 deletions