diff options
author | Corentin LABBE <clabbe.montjoie@gmail.com> | 2016-08-10 11:45:30 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-08-16 17:16:56 +0800 |
commit | 477d9b2e591b8da6901b7c64cc2f08ce7499cfb6 (patch) | |
tree | 64dcce7d4ac9f330b7891823f3394890c8e89833 /drivers/crypto/sunxi-ss/sun4i-ss.h | |
parent | ea1a67414318822b34255c284fa1caa084cbd604 (diff) | |
download | blackbird-obmc-linux-477d9b2e591b8da6901b7c64cc2f08ce7499cfb6.tar.gz blackbird-obmc-linux-477d9b2e591b8da6901b7c64cc2f08ce7499cfb6.zip |
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>
Diffstat (limited to 'drivers/crypto/sunxi-ss/sun4i-ss.h')
-rw-r--r-- | drivers/crypto/sunxi-ss/sun4i-ss.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/crypto/sunxi-ss/sun4i-ss.h b/drivers/crypto/sunxi-ss/sun4i-ss.h index 8e9c05f6e4d4..ece5a1ca67de 100644 --- a/drivers/crypto/sunxi-ss/sun4i-ss.h +++ b/drivers/crypto/sunxi-ss/sun4i-ss.h @@ -164,6 +164,7 @@ struct sun4i_req_ctx { char buf[64]; unsigned int len; struct sun4i_ss_ctx *ss; + int flags; }; int sun4i_hash_crainit(struct crypto_tfm *tfm); |