简体   繁体   中英

How to use ECDiffieHellmanCng with OpenId in .Net 3.5?

I need to get those parameters of OpenId protocol:

sd["openid.assoc_type"] = ???;
sd["openid.session_type"] = ???;
sd["openid.dh_modulus"] = ???;
sd["openid.dh_gen"] = ???;
sd["openid.dh_consumer_public"] = ???;

How can I get it using ECDiffieHellmanCng ? Is it real?

Last I checked, ECDiffieHellmanCng is not the Diffie-Hellman algorithm that OpenID uses. DotNetOpenId doesn't use it (for that reason).

DotNetOpenId has it's own built-in implementation of the DH algorithm since it's not built into .NET. And it should properly handle the openid.dh_modulus and openid.dh_gen parameters already.

What are you trying to do?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM