In Java, one can register a security provider like BouncyCastle statically by editing the security policy files for the JRE or JDK or dynamically by adding the provider programmatically.
When the java security provider like BouncyCastle is converted to a C# callable dll using IKVM one can continue to use BouncyCastle through the dll by adding a reference to IKVM.OpenJDK.Core
and IKVM.OpenJDK.Security
and then make use of the following C# code.
java.security.Security.addProvider(new org.bouncycastle.jce.provider.BouncyCastleProvider());
I understand that the source code for BouncyCastle is already available in the flavor of C#. However, what I need is to convert my own crypto library written in Java to be usable in C# and as such I need to make use of IKVM to achieve this. I can already do this using by converting my crypto library from jar to dll and using the dynamic approach as described above.
Just wondering whether it is possible to register the provider statically using IKVM like in Java. Any ideas?