Java 类org.bouncycastle.openpgp.examples.DSAElGamalKeyRingGenerator 实例源码

项目:CryptMeme    文件:AllTests.java   
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");
}
项目:irma_future_id    文件:AllTests.java   
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");
}
项目:bc-java    文件:AllTests.java   
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");
}