]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pefile: Strip the wrapper off of the cert data block
authorDavid Howells <dhowells@redhat.com>
Tue, 15 Jan 2013 15:33:40 +0000 (15:33 +0000)
committerDavid Howells <dhowells@redhat.com>
Sat, 19 Jan 2013 01:05:20 +0000 (01:05 +0000)
commitb027d7a3d2061994a15e36730c3955a9711fd7bc
treea4302e0dd7ae27d9698dcf8ac6bc64258b663f97
parent1423d00dd888f6a32dd0a6c2001aa9da132bb23e
pefile: Strip the wrapper off of the cert data block

The certificate data block in a PE binary has a wrapper around the PKCS#7
signature we actually want to get at.  Strip this off and check that we've got
something that appears to be a PKCS#7 signature.

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