From: Steffen Trumtrar Date: Tue, 7 Apr 2015 15:13:42 +0000 (+0200) Subject: crypto: sahara - fix AES descriptor create X-Git-Tag: omap-for-v4.2/o2_dc~130^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1711045fb11b4aa9afda066ce5fe68b2345d52c5;p=pandora-kernel.git crypto: sahara - fix AES descriptor create The AES implementation still assumes, that the hw_desc[0] has a valid key as long as no new key needs to be set; consequentialy it always sets the AES key header for the first descriptor and puts data into the second one (hw_desc[1]). Change this to only update the key in the hardware, when a new key is to be set and use the first descriptor for data otherwise. Signed-off-by: Steffen Trumtrar Signed-off-by: Herbert Xu --- Reading git-diff-tree failed