cat.debug("out="+new String(out));
log.debug("out="+new String(out));
    private static boolean checkKeys(PublicKey pubK, PrivateKey privK) {        String in = "foo123";        byte[] text = in.getBytes();        try {            Cipher cipher1 = Cipher.getInstance("RSA/ECB/PKCS1PADDING", "BC");            cipher1.init(Cipher.ENCRYPT_MODE, pubK);            byte[] textout = cipher1.doFinal(text);            Cipher cipher2 = Cipher.getInstance("RSA/ECB/PKCS1PADDING", "BC");            cipher2.init(Cipher.DECRYPT_MODE, privK);            byte[] out = cipher2.doFinal(textout);            cat.debug("out="+new String(out));            return in.equals(new String(out));        } catch (Exception e) {            return false;        }    }