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
ContentInfocannot be parsed - The
SignedDatastructure is malformed - Certificate parsing fails