This set of patches shall clean up the confusion in restoring the ahash request context in crypto/ahash.c . The code was a bit refactored to make it easier to understand as well. Please, make sure the code is well tested before applying. Also, please review very thoroughly. Marek Vasut (3): crypto: Fix the pointer voodoo in unaligned ahash crypto: Pull out the functions to save/restore request crypto: Simplify the ahash_finup implementation crypto/ahash.c | 172 ++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 110 insertions(+), 62 deletions(-) Cc: David S. Miller <davem@xxxxxxxxxxxxx> Cc: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Cc: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> Cc: Shawn Guo <shawn.guo@xxxxxxxxxx> Cc: Tom Lendacky <thomas.lendacky@xxxxxxx> -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html