diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-08-15 12:00:43 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-08-22 07:39:37 +0300 |
commit | 6ee41e5420d0afa8cddf09aa7384dabe570f8dc7 (patch) | |
tree | adaf9488cfc99fde2a383fdb077c1fb55a3a4bc0 /arch/s390/crypto | |
parent | 220f67917ae649336b5fef4dec8024fed4b177f3 (diff) | |
download | linux-6ee41e5420d0afa8cddf09aa7384dabe570f8dc7.tar.xz |
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 'arch/s390/crypto')
0 files changed, 0 insertions, 0 deletions