crypto: hash - Pull out the functions to save/restore request
authorMarek Vasut <marex@denx.de>
Fri, 14 Mar 2014 01:37:05 +0000 (02:37 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Mar 2014 13:54:21 +0000 (21:54 +0800)
commit1ffc9fbd1e5071948b6d48f9a27d845738ee890f
treed125f7d9bde442e04cf1bd6433f7d4136660b4f6
parentab6bf4e5e5e4298e8649e635bee25542cccbfd97
crypto: hash - Pull out the functions to save/restore request

The functions to save original request within a newly adjusted request
and it's counterpart to restore the original request can be re-used by
more code in the crypto/ahash.c file. Pull these functions out from the
code so they're available.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: David S. Miller <davem@davemloft.net>
Cc: Fabio Estevam <fabio.estevam@freescale.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Shawn Guo <shawn.guo@linaro.org>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/ahash.c