public void testDSAElGamaleKeyGeneration() throws Exception { DSAElGamalKeyRingGenerator.main(new String[] { "test", "password" }); createSmallTestInput(); createLargeTestInput(); checkSigning("bpg"); checkKeyBasedEncryption("bpg"); checkLargeKeyBasedEncryption("bpg"); DSAElGamalKeyRingGenerator.main(new String[] { "-a", "test", "password" }); checkSigning("asc"); checkKeyBasedEncryption("asc"); checkLargeKeyBasedEncryption("asc"); }