added extra check on ECDSA key
@@ -131,6 +131,7 @@ private void testEncodingECDSA()
OpenSSHPrivateKeySpec privSpec = new OpenSSHPrivateKeySpec(rawPriv);
isEquals("ecdsa-sha2-nistp256", pubSpec.getType());
+ isEquals("Spec Type", privSpec.getFormat(), "ASN.1");
KeyFactory kpf = KeyFactory.getInstance("EC", "BC");
