cat.debug("Generated " + rsaKeys.getPrivate().getAlgorithm() + " keys with length" + ((RSAPrivateKey)rsaKeys.getPrivate()).getModulus().bitLength());
log.debug("Generated " + rsaKeys.getPrivate().getAlgorithm() + " keys with length" + ((RSAPrivateKey)rsaKeys.getPrivate()).getModulus().bitLength());
    private static KeyPair genKeys()    throws Exception    {        KeyPairGenerator keygen = KeyPairGenerator.getInstance("RSA", "BC");        keygen.initialize(512);        cat.debug("Generating keys, please wait...");        KeyPair rsaKeys = keygen.generateKeyPair();        cat.debug("Generated " + rsaKeys.getPrivate().getAlgorithm() + " keys with length" + ((RSAPrivateKey)rsaKeys.getPrivate()).getModulus().bitLength());        return rsaKeys;    } // getKeys