crypto: sun4i-ss - unify update/final function
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Wed, 10 Aug 2016 09:45:30 +0000 (11:45 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 16 Aug 2016 09:16:56 +0000 (17:16 +0800)
commit477d9b2e591b8da6901b7c64cc2f08ce7499cfb6
tree64dcce7d4ac9f330b7891823f3394890c8e89833
parentea1a67414318822b34255c284fa1caa084cbd604
crypto: sun4i-ss - unify update/final function

The update and final functions have lots of common action.
This patch mix them in one function.
This will give some improvements:
- This will permit asynchronous support more easily
- This will permit to use finup/digest functions with some performance
  improvements

Signed-off-by: LABBE Corentin <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/sunxi-ss/sun4i-ss-hash.c
drivers/crypto/sunxi-ss/sun4i-ss.h