crypto: tegra-aes: performance improvements
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 Feb 2011 09:47:12 +0000 (14:47 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Thu, 22 Mar 2012 08:17:15 +0000 (01:17 -0700)
commit4a58de33cb27ac42c0005dc59ed30d3690c36351
treed0fba228448404463beadab8f177c2314d8b84de
parent4fb0edc413c819d795d2a24a81e2e3b6e8e99bbb
crypto: tegra-aes: performance improvements

- set the key only at the start of encrypt/decrypt operations
- avoid using mutex in handle_req, since it is already serialised
- sanity checks while setting the iv

Original-Change-Id: I026e138f59d661cd705db6820bed63e5e15f02c5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/22162
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R11bd949802ebf158b87b8705aab5271c27da844b
drivers/crypto/tegra-aes.c