From: Dmitry Kasatkin Date: Fri, 19 Nov 2010 14:04:26 +0000 (+0200) Subject: crypto: omap-sham - crypto_ahash_final() now not need to be called. X-Git-Tag: v2.6.38-rc1~238^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=798eed5d9204b01862985ba0643ce5cf84114072;p=pandora-kernel.git crypto: omap-sham - crypto_ahash_final() now not need to be called. According to the Herbert Xu, client may not always call crypto_ahash_final(). In the case of error in hash calculation resources will be automatically cleaned up. But if no hash calculation error happens and client will not call crypto_ahash_final() at all, then internal buffer will not be freed, and clocks will not be disabled. This patch provides support for atomic crypto_ahash_update() call. Clocks are now enabled and disabled per update request. Data buffer is now allocated as a part of request context. Client is obligated to free it with crypto_free_ahash(). Signed-off-by: Dmitry Kasatkin Signed-off-by: Herbert Xu --- Reading git-diff-tree failed