IMA will need to verify a PKCS#7 signature which has already been parsed.
For this reason, factor out the code which does that from
verify_pkcs7_signature() into a new function which takes a struct
pkcs7_message instead of a data buffer.
Signed-off-by: Thiago Jung Bauermann <email@example.com>
Reviewed-by: Mimi Zohar <firstname.lastname@example.org>
Cc: David Howells <email@example.com>
Cc: David Woodhouse <firstname.lastname@example.org>
Cc: Herbert Xu <email@example.com>
Cc: "David S. Miller" <firstname.lastname@example.org>
Signed-off-by: Mimi Zohar <email@example.com>