Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is an example output from Mono for a test Dsa key I generated for this example:</p> <pre><code>&lt;DSAKeyValue &lt;P&gt;jTBkDXQ38ZCYNzCK8gmweKsJ/mTqtDkf9TMNJnJycC4Hel2B/owSoOBGclAXhFLkvGqOC+zz8uMz7X2K31rvTpFxhTD7j6MDiVkjQEhFIacb6+TUn71x0KdN3nZo0CR8QgkkU10bkjHq2409S34pU6d8fZaMUFyOFZtSbkxFGV8=&lt;/P&gt; &lt;Q&gt;6N/tEzeK0DS5nS/PBg944efSlPs=&lt;/Q&gt; &lt;G&gt;OCsUHXdniP4HpLV537LsaetSI3DQRI8dyQUOdhpCFk00t+/Sadokn2rt0dYkL1KCGTc74Z9fXpCKA0ae3aqh63GvV6Uznjn8Mm75jeS9O03YyNmTMKTi1mcTFVipLanaWskqR9o3+DaTY6Puk7UkL9dDEsF+njAE412DCihej0Q=&lt;/G&gt; &lt;Y&gt;gjzX/7ggD8ax1inJv+7GsDNcLWr7wvxLvBETO0BxrMYABP4cH4xF/w63dghNgXOSEFKZ8SFQZpdDhG6LLlysIzOW/KvEE/L2/xkT4tWZUAhxYkVbdjfphVkH4IVqrKbpUUsHcTj/7qc7FtEepWLlywIMNW3dTeeaP3DuKnMIn7w=&lt;/Y&gt; &lt;J&gt;mzWoXBr+3jptO5/JOYh+bNckQgwuwHhCyqbGCJotoVpZzTts10rWEOdf0wQGtWTCXnpU/so1P8S6ZItvflYJxX77fZxv9iEOLcaNIUwBbgv2Jf5kRFx9xAz0yafHQTSyzZJW7bcc+mU2SaG6&lt;/J&gt; &lt;Seed&gt;NfC0CEI+/bzAnuyGgUo2PHTLyw8=&lt;/Seed&gt; &lt;PgenCounter&gt;OA==&lt;/PgenCounter&gt; &lt;X&gt;pK0LlCD6PLynniOKtW/S+iyR3F8=&lt;/X&gt; &lt;/DSAKeyValue&gt; </code></pre> <p>This includes the private parameters. If I only included the public parameters, the output is:</p> <pre><code>&lt;DSAKeyValue&gt; &lt;P&gt;6run4SADV/kR/oEUmYXCTIqwWHG9yE+vMlnAbh4+I1YYTTCZ7Mf9BKZ6Z4WlSk+7WcnX+idT0HI5lOht+f5p32Z7aV86f89fLz4FTB+6r5B/cF8hhNe3mdGVpzzInwh2o16H9ejaB4chgOMASgeeBdNSzgVfj2RRWOZVX8wXWKU=&lt;/P&gt; &lt;Q&gt;mfCvMD98ObtyBO1bJ6rIno2Wxws=&lt;/Q&gt; &lt;G&gt;kgwCcpUWTyGaps8P/ePGj+CZUKSl2kxeJUSABYkgOa5I7OVIWrEgNl5fxCrs7qjXwJ+P+hQFe3HeHZWXONGgHpuakvDtp+G0wXuNUIF4vVwmZ0ff63TMFHGdUQXhsJPtK4ZK3LppSvWXACSzvZETH35A79nm4WRXlAIcHpxyeyg=&lt;/G&gt; &lt;Y&gt;3fUEqW303wicxGJwsq1DoGKtvNUc3Eo33fpsdHMtZj+SyOH5ihvgKE7qd8yQxZH5qMI+5SFTokdwD8lh1jwmIq+Rrf2hi3RjZqNx+Lf3c6xRW3vDZSeTKwW/2xPiA+5z1rpO1/o2Bo5vV8i0ML3ik0VZasNVouo3C9KSX7Ya2cw=&lt;/Y&gt; &lt;J&gt;AAAAAYZbcc5kA7nb5725pbY/qaTakYrxutdCZKEbtFu8KeXYFLCyw3FWlhmvMsStoAkleCnop0bBIoI3FLSEq5ZqUGcBfpNsV4qCs6tKcS7aZ8OFWpXncrYF1pwpaKpdzjDCaV69CEgkDCdQHw4gbA==&lt;/J&gt; &lt;Seed&gt;n6ylLBasoS2Xqoc+QvBAXxQaFsc=&lt;/Seed&gt; &lt;PgenCounter&gt;Dg==&lt;/PgenCounter&gt; &lt;/DSAKeyValue&gt; </code></pre> <p>Notice the missing 'X' value which is the private key.</p> <p>You should not be trying to parse these manually. Instead, use the <a href="http://msdn.microsoft.com/en-us/library/system.security.cryptography.dsa.fromxmlstring.aspx" rel="nofollow"><code>DsaCryptoServiceProvider.FromXmlString</code></a> method. Also, unless I am misreading the output this <em>is</em> compatible with the W3C standard, notwithstanding my comment above.</p> <p>EDIT </p> <p>Here is the code I used to generate the key. Bear in mind this was using Mono on Mac OS X, but I think it will work the same in .NET on Windows.</p> <pre><code>using System; using System.Security.Cryptography; namespace DsaParametersToy { class MainClass { public static void Main (string[] args) { var dsa = new DSACryptoServiceProvider(1024); var dsaparams = dsa.ToXmlString(false); Console.WriteLine (dsaparams); } } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload