]> git.baikalelectronics.ru Git - kernel.git/commit
evm: crypto hash replaced by shash
authorDmitry Kasatkin <dmitry.kasatkin@nokia.com>
Wed, 9 Mar 2011 20:07:36 +0000 (15:07 -0500)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Mon, 18 Jul 2011 16:29:46 +0000 (12:29 -0400)
commitd1d1d6788ff4ceb25930399e633587e9c9a85ab6
tree4761b63f12ded9ad53e3019c33d62d173b4b07da
parent76792c3d900fcab0a1184c0a472e33d0ceca5cc4
evm: crypto hash replaced by shash

Using shash is more efficient, because the algorithm is allocated only
once. Only the descriptor to store the hash state needs to be allocated
for every operation.

Changelog v6:
- check for crypto_shash_setkey failure

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@nokia.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/evm/evm.h
security/integrity/evm/evm_crypto.c
security/integrity/evm/evm_main.c