]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pefile: Digest the PE binary and compare to the PKCS#7 data
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Jan 2013 15:33:41 +0000 (15:33 +0000)
committerDavid Howells <dhowells@redhat.com>
Sat, 19 Jan 2013 01:05:20 +0000 (01:05 +0000)
commitafaf0b42c22687321f117d8cc626e9dfa5cff346
tree11eea4bba7c171d988384161a797d812b0c6e959
parent747762564258e8812e72b6d06f4c1ebcee0d35c1
pefile: Digest the PE binary and compare to the PKCS#7 data

Digest the signed parts of the PE binary, canonicalising the section table
before we need it, and then compare the the resulting digest to the one in the
PKCS#7 signed content.

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