title: How can I extract the exponent "e" and the private key "d" after the cryptGenerateKey function? (cryptlib library)
body: <p>How can I extract the exponent "e" and the private key "d" after the cryptGenerateKey function? (cryptlib library)</p>
  
  <pre><code>cryptCreateContext( &amp;cryptContext, CRYPT_UNUSED, CRYPT_ALGO_RSA );
  cryptSetAttributeString( cryptContext, CRYPT_CTXINFO_LABEL, KEY_ID, strlen(KEY_ID));
  cryptSetAttribute( cryptContext, CRYPT_CTXINFO_KEYSIZE, 4096 / 8 );
  cryptGenerateKey(cryptContext);
  </code></pre>
  
  <p>Thank you for your help</p>
  
  <p>cheers</p>
  
  <p>Daniel</p>