[][src]Function melib::email::pgp::convert_attachment_to_rfc_spec

pub fn convert_attachment_to_rfc_spec(input: &[u8]) -> Vec<u8>

Convert raw attachment to the form needed for signature verification (rfc3156)

rfc3156

Upon receipt of a signed message, an application MUST:

  (1)   Convert line endings to the canonical <CR><LF> sequence before
        the signature can be verified.  This is necessary since the
        local MTA may have converted to a local end of line convention.
  (2)   Pass both the signed data and its associated content headers
        along with the OpenPGP signature to the signature verification
        service.