Are ECDSA and ECDH available for mono?

怎甘沉沦 提交于 2019-12-07 17:53:51

问题


The question pretty much sums it up. Are ECDSA and ECDH available for mono? If they are not, will they be?


回答1:


No they are not available inside Mono BCL, nor Xamarin.iOS or Xamarin.Android.

There's a bug report for each of them, ECDSA and ECDH, so you might want to add yourself on c.c. to know when this will change. Right now there's no time table to include them.




回答2:


Microsoft .NET supports both,

http://msdn.microsoft.com/en-us/library/system.security.cryptography.ecdsacng.aspx

http://msdn.microsoft.com/en-us/library/system.security.cryptography.ecdiffiehellmancng.aspx

From both Mono source code and documentation you can see that ECDSA and ECDH are not supported, as the corresponding classes are missing,

https://github.com/mono/mono/tree/master/mcs/class/System.Core/System.Security.Cryptography

http://docs.go-mono.com/?link=N%3aSystem.Security.Cryptography

For Xamarin.iOS and Xamarin.Android which are derived from Mono, you might check if there are any native library to call.




回答3:


You can try to use "The Legion of the Bouncy Castle". It's fully written in .NET and supports many signature and encryption algorithms. I found it a bit tricky to use, there's not a lof of documentation, but it works.

Try to find a NuGet package or visit their website:

http://www.bouncycastle.org/csharp/



来源:https://stackoverflow.com/questions/18116417/are-ecdsa-and-ecdh-available-for-mono

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!