bs.putString(service);
bs.putString("publickey");
bs.putByte((byte) 1);
bs.putString((key.getPublic() instanceof RSAPublicKey) ? KeyPairProvider.SSH_RSA : KeyPairProvider.SSH_DSS);
bs.putPublicKey(key.getPublic());
verif.update(bs.array(), bs.rpos(), bs.available());
bs = new Buffer();
bs.putString((key.getPublic() instanceof RSAPublicKey) ? KeyPairProvider.SSH_RSA : KeyPairProvider.SSH_DSS);
bs.putBytes(verif.sign());
buffer.putBytes(bs.array(), bs.rpos(), bs.available());