Are ECDSA and ECDH available for mono?

混江龙づ霸主 提交于 2019-12-06 00:30:23

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.

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.

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/

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