問題タブ [wincrypt]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
c++ - Wincrypt Diffie Hellman エラー
wincrypt を使用して、P 値と G 値を使用して秘密鍵を生成しようとしています。コードの何が問題なのかわかりません。これは、Microsoft の Web サイトにあるサンプル コードと同じ実装です。 https://msdn.microsoft.com/en-us/library/aa381969(VS.85).aspx#exching_diffie-hellman_keys
最後のCryptSetKeyParamでエラーが発生しています。ご意見をお聞かせください。
前もって感謝します。