diff options
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index abf100c054e0..3c079b7f23f6 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -980,7 +980,8 @@ EXPORT_SYMBOL_GPL(crypto_xor); | |||
980 | 980 | ||
981 | unsigned int crypto_alg_extsize(struct crypto_alg *alg) | 981 | unsigned int crypto_alg_extsize(struct crypto_alg *alg) |
982 | { | 982 | { |
983 | return alg->cra_ctxsize; | 983 | return alg->cra_ctxsize + |
984 | (alg->cra_alignmask & ~(crypto_tfm_ctx_alignment() - 1)); | ||
984 | } | 985 | } |
985 | EXPORT_SYMBOL_GPL(crypto_alg_extsize); | 986 | EXPORT_SYMBOL_GPL(crypto_alg_extsize); |
986 | 987 | ||