From: Milan Broz Date: Thu, 10 Dec 2009 23:51:56 +0000 (+0000) Subject: dm crypt: separate essiv allocation from initialisation X-Git-Tag: v2.6.33-rc1~75^2~71 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b95bf2d3d5a48b095bffe2a0cd8c40453cf59557;p=pandora-kernel.git dm crypt: separate essiv allocation from initialisation This patch separates the construction of IV from its initialisation. (For ESSIV it is a hash calculation based on volume key.) Constructor code now preallocates hash tfm and salt array and saves it in a private IV structure. The next patch requires this to reinitialise the wiped IV without reallocating memory when resuming a suspended device. Cc: stable@kernel.org Signed-off-by: Milan Broz Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed