]> git.karo-electronics.de Git - karo-tx-linux.git/commit
PEFILE: Load the contained key if we consider the container to be validly signed
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Jan 2013 15:33:42 +0000 (15:33 +0000)
committerDavid Howells <dhowells@redhat.com>
Sat, 19 Jan 2013 01:05:21 +0000 (01:05 +0000)
commit736c71ba3288ffb44b52ac59b1b5e3443dc48500
tree445e237b3e2317e7ed8530075f7d3616bd0546c8
parent60b75c4ed9ec2fc148b3387883426258cab3efad
PEFILE: Load the contained key if we consider the container to be validly signed

Load the key contained in the PE binary if the signature on the container can
be verified by following the chain of X.509 certificates in the PKCS#7 message
to a key that we already trust.  Typically, the trusted key will be acquired
from a source outside of the kernel, such as the UEFI database.

Signed-off-by: David Howells <dhowells@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
crypto/asymmetric_keys/pefile_parser.c
crypto/asymmetric_keys/x509_parser.h
crypto/asymmetric_keys/x509_public_key.c