From: David Howells Date: Mon, 20 Jul 2015 20:16:26 +0000 (+0100) Subject: PKCS#7: Allow detached data to be supplied for signature checking purposes X-Git-Tag: omap-for-v4.3/fixes-rc1~70^2~6^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ebdb76f7da662346267384440492bb9d87c2aa3;p=pandora-kernel.git 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 Tested-by: Vivek Goyal --- Reading git-diff-tree failed