Anyone can help reviewing this fix? According to the bug report, some vendors return 0 for both min/max key size range when queried which leads to unexpected errors when SunPKCS11 provider validates key sizes. So, I modified the code to work around this. No new regression test as this is vendor specific and not an issue for the current PKCS11 libraries used in regression testing.
Bug: https://bugs.openjdk.java.net/browse/JDK-8183107 Webrev: http://cr.openjdk.java.net/~valeriep/8183107/webrev.00/ Mach5 run is clean. Thanks, Valerie
