throw new SshException("Key not found");
}
try {
Signature verif;
if (kp.getFirst().getPublic() instanceof DSAPublicKey) {
verif = new SignatureDSA();
} else if (kp.getFirst().getPublic() instanceof ECPublicKey) {
ECPublicKey pubKey = (ECPublicKey) kp.getFirst().getPublic();
verif = SignatureECDSA.getByCurveSize(pubKey.getParams());
} else if (kp.getFirst().getPublic() instanceof RSAPublicKey) {
verif = new SignatureRSA();