diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-20 01:39:00 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-20 22:19:54 -0400 |
commit | 38d21433112c25acdb8e93f60be629e7a1c27a26 (patch) | |
tree | 6181b6526feb9f200389026477499ebcc28e6c7c /crypto/algapi.c | |
parent | 2a57e4241ec9a11ce89f43099a0f6b83a28058fa (diff) |
crypto: api - Add crypto_alg_extsize helper
This patch adds a crypto_alg_extsize helper that can be used
by algorithm types such as pcompress and shash.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index d2627a3d4ed8..a60f62625b5f 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -964,6 +964,12 @@ void crypto_xor(u8 *dst, const u8 *src, unsigned int size) | |||
964 | } | 964 | } |
965 | EXPORT_SYMBOL_GPL(crypto_xor); | 965 | EXPORT_SYMBOL_GPL(crypto_xor); |
966 | 966 | ||
967 | unsigned int crypto_alg_extsize(struct crypto_alg *alg) | ||
968 | { | ||
969 | return alg->cra_ctxsize; | ||
970 | } | ||
971 | EXPORT_SYMBOL_GPL(crypto_alg_extsize); | ||
972 | |||
967 | static int __init crypto_algapi_init(void) | 973 | static int __init crypto_algapi_init(void) |
968 | { | 974 | { |
969 | crypto_init_proc(); | 975 | crypto_init_proc(); |