KeepAlive keepalive = createKeepAlive(keyfactAlgs[i]);
KeyPair keys = keyGen.generateKeyPair();
if (keepalive != null) {
keepalive.interrupt();
}
fact.translateKey(keys.getPrivate());
} catch (NoSuchAlgorithmException e) {
fail("getInstance did not find algorithm " + keyfactAlgs[i]);
} catch (NoSuchProviderException e) {
fail("getInstance did not find provider " + providerName);
} catch (InvalidKeyException e) {