]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
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)
committerDmitry Kasatkin <dmitry.kasatkin@intel.com>
Tue, 20 Dec 2011 15:45:45 +0000 (17:45 +0200)
commitd21b59451886cb82448302f8d6f9ac87c3bd56cf
treef2842dca9ee3c2c3febbe2f6984bb2c5e2a34c28
parent511585a28e5b5fd1cac61e601e42efc4c5dd64b5
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