cat.debug(">genKeys()");
log.debug(">genKeys()");
    static public KeyPair genKeys(int keysize) throws NoSuchAlgorithmException, NoSuchProviderException {        cat.debug(">genKeys()");        KeyPairGenerator keygen = KeyPairGenerator.getInstance("RSA", "BC");        keygen.initialize(keysize);        KeyPair rsaKeys = keygen.generateKeyPair();        cat.debug("Generated " + rsaKeys.getPublic().getAlgorithm() + " keys with length " + ((RSAPrivateKey)rsaKeys.getPrivate()).getPrivateExponent().bitLength());        cat.debug("<genKeys()");        return rsaKeys;    } // genKeys