Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RSA/ECB/Pkcs1Padding with private key in CryptoAPI

793903Jun 8 2009 — edited Jul 21 2009
Hi,

Does anybody know, how to implement RSA/ECB/Pkcs1Padding in CryptoAPI, assuming I have only handle to my non-exportable private key? Java Cipher gives me always the same result, when I try to implement this in CryptoAPI, I get always different result and their documentation(msdn) doesn't provide any info, what's happening inside. I tried to set ECB and PKCS#1 padding in C++ manually, still it's not working.

I'm implementing this to my own JCE provider, because I have to use java 1.4.2 and need to use SSL with client authentication. I can't use anything else, because I have to work with windows key stores, which is the main role of my JCE provider.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 18 2009
Added on Jun 8 2009
22 comments
2,793 views