crypto: tegra-aes: performance improvements
authorVarun Wadekar <vwadekar@nvidia.com>
Mon, 14 Feb 2011 09:47:12 +0000 (15:17 +0530)
committerVarun Colbert <vcolbert@nvidia.com>
Fri, 11 Mar 2011 05:42:05 +0000 (21:42 -0800)
commita8dbfda58a6980976de60ba46f22a5f0b2ecab5f
tree136c3aadd306989aa97b028b92d10ee1cccd38ef
parent5e781cde8e840b2603c8f496eb5dc6c7bc7ed877
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

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>
drivers/crypto/tegra-aes.c