summaryrefslogtreecommitdiff
path: root/include/crypto/skcipher.h
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-10-03 11:43:33 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-10-13 18:27:27 +0800
commit2c98594373c01739c2a2b3f056b8f2f850c26dc7 (patch)
tree5cbeb0e6cc9b42bc8d9b1ab7942f9feb6031bb5b /include/crypto/skcipher.h
parentbf028cfe8a505b5330be7df628ac19ffad48f932 (diff)
crypto: skcipher - Remove obsolete skcipher_alg helpers
As skcipher spawn users can no longer assume the spawn is of type struct skcipher_alg, these helpers are no longer used. Remove them. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/skcipher.h')
-rw-r--r--include/crypto/skcipher.h25
1 files changed, 1 insertions, 24 deletions
diff --git a/include/crypto/skcipher.h b/include/crypto/skcipher.h
index a648ef5ce897..ea18af48346b 100644
--- a/include/crypto/skcipher.h
+++ b/include/crypto/skcipher.h
@@ -395,17 +395,6 @@ static inline struct lskcipher_alg *crypto_lskcipher_alg(
struct lskcipher_alg, co.base);
}
-static inline unsigned int crypto_skcipher_alg_ivsize(struct skcipher_alg *alg)
-{
- return alg->ivsize;
-}
-
-static inline unsigned int crypto_lskcipher_alg_ivsize(
- struct lskcipher_alg *alg)
-{
- return alg->co.ivsize;
-}
-
/**
* crypto_skcipher_ivsize() - obtain IV size
* @tfm: cipher handle
@@ -473,18 +462,6 @@ static inline unsigned int crypto_lskcipher_blocksize(
return crypto_tfm_alg_blocksize(crypto_lskcipher_tfm(tfm));
}
-static inline unsigned int crypto_skcipher_alg_chunksize(
- struct skcipher_alg *alg)
-{
- return alg->chunksize;
-}
-
-static inline unsigned int crypto_lskcipher_alg_chunksize(
- struct lskcipher_alg *alg)
-{
- return alg->co.chunksize;
-}
-
/**
* crypto_skcipher_chunksize() - obtain chunk size
* @tfm: cipher handle
@@ -516,7 +493,7 @@ static inline unsigned int crypto_skcipher_chunksize(
static inline unsigned int crypto_lskcipher_chunksize(
struct crypto_lskcipher *tfm)
{
- return crypto_lskcipher_alg_chunksize(crypto_lskcipher_alg(tfm));
+ return crypto_lskcipher_alg(tfm)->co.chunksize;
}
static inline unsigned int crypto_sync_skcipher_blocksize(