fn check_for_headers(pem: &[u8], err: Error) -> Error
Check for PEM headers in the input, as they are disallowed by RFC7468.
Returns Error::HeaderDisallowed if headers are encountered.
Error::HeaderDisallowed