]> git.baikalelectronics.ru Git - kernel.git/commit
PKCS#7: Allow detached data to be supplied for signature checking purposes
authorDavid Howells <dhowells@redhat.com>
Mon, 20 Jul 2015 20:16:26 +0000 (21:16 +0100)
committerDavid Howells <dhowells@redhat.com>
Fri, 7 Aug 2015 15:26:13 +0000 (16:26 +0100)
commit6d4e9a6c8c974f697ff90dce09b5b549627a3e8f
tree53b863a630359237fc6dfdfc051a2aebbac5f7d1
parent263f06f2bf47d71c1908e0978e9a58f2d6611148
PKCS#7: Allow detached data to be supplied for signature checking purposes

It is possible for a PKCS#7 message to have detached data.  However, to verify
the signatures on a PKCS#7 message, we have to be able to digest the data.
Provide a function to supply that data.  An error is given if the PKCS#7
message included embedded data.

This is used in a subsequent patch to supply the data to module signing where
the signature is in the form of a PKCS#7 message with detached data, whereby
the detached data is the module content that is signed.

Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Vivek Goyal <vgoyal@redhat.com>
crypto/asymmetric_keys/pkcs7_verify.c
include/crypto/pkcs7.h