diff options
author | Tom Lendacky <thomas.lendacky@amd.com> | 2014-01-06 13:34:23 -0600 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-01-15 11:33:40 +0800 |
commit | 82d1585b9a9d5106ec6a630696f3e2e532fc3cba (patch) | |
tree | 7d9afd48c678884bb88f98168098ea53aee57936 /drivers/crypto/ccp/ccp-crypto-aes-cmac.c | |
parent | 81a59f000e1d4a60a03081a1fc64aee46d6f0c3e (diff) | |
download | linux-82d1585b9a9d5106ec6a630696f3e2e532fc3cba.tar.gz linux-82d1585b9a9d5106ec6a630696f3e2e532fc3cba.tar.bz2 linux-82d1585b9a9d5106ec6a630696f3e2e532fc3cba.zip |
crypto: ccp - Cleanup hash invocation calls
Cleanup the ahash digest invocations to check the init
return code and make use of the finup routine.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-crypto-aes-cmac.c')
-rw-r--r-- | drivers/crypto/ccp/ccp-crypto-aes-cmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/ccp/ccp-crypto-aes-cmac.c b/drivers/crypto/ccp/ccp-crypto-aes-cmac.c index a52b97a4c843..8e162ad82085 100644 --- a/drivers/crypto/ccp/ccp-crypto-aes-cmac.c +++ b/drivers/crypto/ccp/ccp-crypto-aes-cmac.c @@ -198,7 +198,7 @@ static int ccp_aes_cmac_digest(struct ahash_request *req) if (ret) return ret; - return ccp_do_cmac_update(req, req->nbytes, 1); + return ccp_aes_cmac_finup(req); } static int ccp_aes_cmac_setkey(struct crypto_ahash *tfm, const u8 *key, |