try {
keyPairGen.initialize(pp, null);
fail("UnsupportedOperationException must be thrown");
} catch (UnsupportedOperationException e) {
}
keyPairGen.initialize(pp, new SecureRandom());
keyPairGen.initialize(1024, new SecureRandom());
try {
keyPairGen.initialize(-1024, new SecureRandom());
fail("IllegalArgumentException must be thrown for incorrect keysize");
} catch (IllegalArgumentException e) {