forked from I2P_Developers/i2p.i2p
Utils: Enhance exception message for ticket #2296
This commit is contained in:
@ -190,7 +190,7 @@ public final class SigUtil {
|
|||||||
else if (spec.equals(SigType.ECDSA_SHA512_P521.getParams()))
|
else if (spec.equals(SigType.ECDSA_SHA512_P521.getParams()))
|
||||||
type = SigType.ECDSA_SHA512_P521;
|
type = SigType.ECDSA_SHA512_P521;
|
||||||
else
|
else
|
||||||
throw new IllegalArgumentException("Unknown EC type");
|
throw new IllegalArgumentException("Unknown EC type: " + pk.getClass() + " spec: " + spec.getClass());
|
||||||
return fromJavaKey(k, type);
|
return fromJavaKey(k, type);
|
||||||
}
|
}
|
||||||
if (pk instanceof EdDSAPrivateKey) {
|
if (pk instanceof EdDSAPrivateKey) {
|
||||||
|
Reference in New Issue
Block a user