Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Why I am not getting namespaces done used in Java to .net Environment?

I converted the Jar files containing the namespaces required to a dll usable in .Net via the following command in command prompt

ikvmc -out:T2dll bcprov-jdk15-1.46.jar

But Many classes like CMSTyedData,operator.contentSigner etc aren't coming even after referencing the .net dll generated via IKVM tool

C#
import org.bouncycastle.cms.CMSSignedData;
using org.bouncycastle.cms.CMSSignedDataGenerator;
using org.bouncycastle.cms.CMSTypedData;
using org.bouncycastle.cms.jcajce.JcaSignerInfoGeneratorBuilder;
using org.bouncycastle.operator.ContentSigner;
using  org.bouncycastle.operator.jcajce.JcaContentSignerBuilder;
using org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder;
Posted
Comments
[no name] 12-Jun-15 9:29am    
Here's a thought..... why don't you simply go get and use the .NET bouncy castle binaries instead of messing with this java PITA?
Alex345098 12-Jun-15 10:32am    
How to get the equivalent functionality in C# corresponding to Java code used in bouncy castle. Some methods done in Java are missing in c# and hence the verification may fail there which is from an external source .
[no name] 12-Jun-15 10:43am    
You are completely missing the point. Some methods are missing in C# because C# is not java. Go get the C# implementation of bouncy castle and use that!
virusstorm 12-Jun-15 12:30pm    
Wes Aday is right, use the C# implementation of Bouncy Castle. Your verification should not fail. While the code to do the action is different between C# and Java, the algorithm it uses to perform the action is identical.
Alex345098 15-Jun-15 2:00am    
Digital Signature has been done in Java using the methods cmsSignedDataGenearor,cmsSignedData,cmsTypedData,jcaDigest CalculatorProviderBuilder etc. Will these methods work out in c# for digital signature and its verification??

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900