]> git.baikalelectronics.ru Git - kernel.git/commit
evm: Allow non-SHA1 digital signatures
authorMatthew Garrett <mjg59@google.com>
Fri, 8 Jun 2018 21:57:43 +0000 (14:57 -0700)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Wed, 18 Jul 2018 11:27:22 +0000 (07:27 -0400)
commit2d2d746567a8264c9da36800da90b6c08741e962
tree6998490db3d17d7dffbfcc4d69d521c44f0fe8ac
parent149543894c31c46496fd09367284d57ce3c67901
evm: Allow non-SHA1 digital signatures

SHA1 is reasonable in HMAC constructs, but it's desirable to be able to
use stronger hashes in digital signatures. Modify the EVM crypto code so
the hash type is imported from the digital signature and passed down to
the hash calculation code, and return the digest size to higher layers
for validation.

Signed-off-by: Matthew Garrett <mjg59@google.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/evm/Kconfig
security/integrity/evm/evm.h
security/integrity/evm/evm_crypto.c
security/integrity/evm/evm_main.c