pub fn parse_cms_signature(signature_bytes: &[u8]) -> Result<CmsSignatureInfo>
Expand description
Parse a CMS/PKCS#7 signature and extract signer information
ยงErrors
Returns an error if:
- The input is not a valid CMS/PKCS#7 structure
- The
ContentInfo
cannot be parsed - The
SignedData
structure is malformed - Certificate parsing fails