title: RSA.Verify issues in .Net Core 3.0
body: <p>I'm working with a 3rd party who sends me a certificate via a byte array.  They send me 3 strings in an XML document that include, x509Data, SignatureValue, and DigestValue(for debugging).</p>
  
  <p>They want me to validate that the SignatureValue is valid using the certificate public key contained in the x509Data cert.  I'm populating the cert fine but when I try to Verify, it always returns false.  </p>
  
  <p>Here is my code:</p>
  
  <pre><code>byte[] SignatureValueBytes = Convert.FromBase64String(Signature.SignatureValue);
  byte[] x509DataBytes = Convert.FromBase64String(Signature.x509Data);
  byte[] DigestValueBytes = Convert.FromBase64String(Signature.DigestValue);
  X509Certificate2 cert = new X509Certificate2(x509DataBytes);
  using (RSA RSA = (RSA)cert.PublicKey.Key)
  {
      bool a = RSA.VerifyData(x509DataBytes, SignatureValueBytes, HashAlgorithmName.SHA256, RSASignaturePadding.Pkcs1);
  }
  </code></pre>
  
  <p>Signature.* is the string coming from the XML file.  Can some kind soul point out where I'm going wrong here?</p>