From: Herbert Xu Date: Wed, 22 Jul 2009 04:37:06 +0000 (+0800) Subject: crypto: shash - Require all algorithms to support export/import X-Git-Tag: v2.6.32-rc1~731^2~23 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f592682f9fca18d336ac068a1abc8507b4a1d936;p=pandora-kernel.git crypto: shash - Require all algorithms to support export/import This patch provides a default export/import function for all shash algorithms. It simply copies the descriptor context as is done by sha1_generic. This in essence means that all existing shash algorithms now support export/import. This is something that will be depended upon in implementations such as hmac. Therefore all new shash and ahash implementations must support export/import. For those that cannot obtain a partial result, padlock-sha's fallback model should be used so that a partial result is always available. Signed-off-by: Herbert Xu --- Reading git-diff-tree failed