PKCS#7: Find the right key in the PKCS#7 key list and verify the signature
authorDavid Howells <dhowells@redhat.com>
Tue, 1 Jul 2014 15:40:19 +0000 (16:40 +0100)
committerDavid Howells <dhowells@redhat.com>
Tue, 8 Jul 2014 12:50:08 +0000 (13:50 +0100)
commita4730357ee724f8c64f0292541ba3da8a95510fb
tree6fb1aa9af3515b0de6c6d5bcb85c3a44b8ba554e
parent9f0d33146e2ae81342a493c579c0e0c1aa84a527
PKCS#7: Find the right key in the PKCS#7 key list and verify the signature

Find the appropriate key in the PKCS#7 key list and verify the signature with
it.  There may be several keys in there forming a chain.  Any link in that
chain or the root of that chain may be in our keyrings.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
crypto/asymmetric_keys/pkcs7_verify.c
include/crypto/pkcs7.h