title: What kind of RSASignaturePadding use with PKCS#8 key?
body: <p>I am trying to sign a string with a PKCS#8 key using SHA-256 with RSA.</p>
  
  <p>The <code>RSACng.SignData()</code> method requires a RSASignaturePadding, of which the options are <code>Pkcs1</code> and <code>Pss</code>.  I can't find anything definitive to tell me which would be used for PKCS#8.</p>
  
  <pre class="lang-net prettyprint-override"><code>    // Decode Token (token is Base64 &amp; PKCS8 encoded)
      byte[] decodedKey = Convert.FromBase64String(myBase64String);
      CngKey key = CngKey.Import(decodedKey, CngKeyBlobFormat.Pkcs8PrivateBlob);
  
      // Build signature
      string signature = "123abc";
  
      byte[] bytes = Encoding.UTF8.GetBytes(signature);
  
      // Sign signature using key &amp; SHA256 w RSA
      var unsigned = new RSACng(key);
      byte[] data = unsigned.SignData(bytes, HashAlgorithmName.SHA256, &lt;??????&gt;);
  </code></pre>
  
  <p>Cryptography is all new to me, so if my approach is way off, please let me know.</p>