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 <firstname.lastname@example.org>
Reviewed-by: Mimi Zohar <email@example.com>
Cc: David Howells <firstname.lastname@example.org>
Cc: David Woodhouse <email@example.com>
Cc: Herbert Xu <firstname.lastname@example.org>
Cc: "David S. Miller" <email@example.com>
Signed-off-by: Mimi Zohar <firstname.lastname@example.org>