evm: key must be set once during initialization
authorDmitry Kasatkin <dmitry.kasatkin@intel.com>
Mon, 5 Dec 2011 11:17:41 +0000 (13:17 +0200)
committerJames Morris <jmorris@namei.org>
Wed, 7 Dec 2011 23:06:09 +0000 (10:06 +1100)
commit88d7ed35085184f15a2af3d9e88d775059b2f307
treef02d2530e0f665fea4c5b240404f7767d39f47bf
parentfe0e94c5a7e5335ba0d200e7d3e26e9f80cda4b1
evm: key must be set once during initialization

On multi-core systems, setting of the key before every caclculation,
causes invalid HMAC calculation for other tfm users, because internal
state (ipad, opad) can be invalid before set key call returns.
It needs to be set only once during initialization.

Signed-off-by: Dmitry Kasatkin <dmitry.kasatkin@intel.com>
Acked-by: Mimi Zohar <zohar@us.ibm.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/integrity/evm/evm_crypto.c