The essiv template does not support partial operation and therefore this patch sets its final_chunksize to -1 to mark this fact. Signed-off-by: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> --- crypto/essiv.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/essiv.c b/crypto/essiv.c index d012be23d496d..dd19cfefe559c 100644 --- a/crypto/essiv.c +++ b/crypto/essiv.c @@ -580,6 +580,7 @@ static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb) skcipher_inst->alg.ivsize = ivsize; skcipher_inst->alg.chunksize = crypto_skcipher_alg_chunksize(skcipher_alg); skcipher_inst->alg.walksize = crypto_skcipher_alg_walksize(skcipher_alg); + skcipher_inst->alg.final_chunksize = -1; skcipher_inst->free = essiv_skcipher_free_instance;