crypto: skcipher - remove crypto_skcipher::keysize
authorEric Biggers <ebiggers@google.com>
Fri, 29 Nov 2019 18:23:04 +0000 (10:23 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 11 Dec 2019 08:36:56 +0000 (16:36 +0800)
commit9ac0d136938ad8b8dd309f833abe5304dd2f0b08
tree61c7ad1c02d24f91a2f82169d090e0dd31c60d5b
parent140734d3711335836cc1b9706d73953750fa4c8d
crypto: skcipher - remove crypto_skcipher::keysize

Due to the removal of the blkcipher and ablkcipher algorithm types,
crypto_skcipher::keysize is now redundant since it always equals
crypto_skcipher_alg(tfm)->max_keysize.

Remove it and update crypto_skcipher_default_keysize() accordingly.

Also rename crypto_skcipher_default_keysize() to
crypto_skcipher_max_keysize() to clarify that it specifically returns
the maximum key size, not some unspecified "default".

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/skcipher.c
crypto/testmgr.c
fs/ecryptfs/crypto.c
fs/ecryptfs/keystore.c
include/crypto/skcipher.h