| Summary: | "RSA premaster secret error" and "Cannot find any provider supporting RSA/ECB/PKCS1Padding" when step through mode | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Ralf Hauser <hauser> |
| Component: | Debug | Assignee: | JDT-Debug-Inbox <jdt-debug-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | sburoff |
| Version: | 3.0.1 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows XP | ||
| Whiteboard: | |||
|
Description
Ralf Hauser
Please attach steps to reproduce Could this be related to Bug #89935? thanks for the hint:
Cipher cp1 = Cipher.getInstance("DES/ECB/NoPadding");
log.debug(cp1 + ", " + cp1.getAlgorithm() + ", "
+ cp1.getProvider());
Cipher cp = Cipher.getInstance("DES/ECB/NoPadding", "SunJCE");
log.debug(cp + ", " + cp.getAlgorithm() + ", "
+ cp.getProvider());
produces
- with "use default system libraries"
<<DEBUG [main] (TestSuite.java:369) - javax.crypto.Cipher@eaf40c,
DES/ECB/NoPadding, SunJCE version 1.5
DEBUG [main] (TestSuite.java:372) - javax.crypto.Cipher@13c6641,
DES/ECB/NoPadding, SunJCE version 1.5>>
- without the "use default system libraries", I get
<<DEBUG [main] (TestSuite.java:369) - javax.crypto.Cipher@18d7ace,
DES/ECB/NoPadding, BC version 1.28>>
and then the stacktrace as per the above referenced bug ending in
<<DEBUG [main] (TestSuite.java:377) - JCE cannot authenticate
the provider SunJCE>>
So, interesting that the "BC" gets half found due to
Security.addProvider(new BouncyCastleProvider());
but as soon as I do not ask specificly for "BC", it fails at least in the case
reported on the bouncycastle mailing list
Interestingly, my bcprov*.jar is not in the jre/lib directories that are
supposedly affect by this, but in the Project - Poperties - Build-Path - Libraries
Anyway, if there were a good way to warn the user, I hope you will add this (at
least I don't recall a specific reason for not to have that box checked, so why
is it unchecked? And if I did so, I certainly didn't get a warning that would
helped me when running into this)!
|