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

项目:CryptMeme    文件:AllTests.java   
public void testRSAKeyGeneration() 
    throws Exception
{   
    RSAKeyPairGenerator.main(new String[] { "test", "password" });

    createSmallTestInput();
    createLargeTestInput();

    checkSigning("bpg");
    checkKeyBasedEncryption("bpg");
    checkLargeKeyBasedEncryption("bpg");

    RSAKeyPairGenerator.main(new String[] { "-a", "test", "password" });

    checkSigning("asc");
    checkKeyBasedEncryption("asc");
    checkLargeKeyBasedEncryption("asc");
}
项目:CryptMeme    文件:AllTests.java   
public void testClearSigned()
    throws Exception
{
    createTestFile(clearSignedPublicKey, "pub.bpg");

    checkClearSignedVerify(nlOnlySignedMessage);
    checkClearSignedVerify(crOnlySignedMessage);
    checkClearSignedVerify(crNlSignedMessage);
    checkClearSignedVerify(crNlSignedMessageTrailingWhiteSpace);

    ClearSignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub.bpg" });

    RSAKeyPairGenerator.main(new String[] { "test", "password" });

    checkClearSigned(crOnlyMessage);
    checkClearSigned(nlOnlyMessage);
    checkClearSigned(crNlMessage);
    checkClearSigned(crNlMessageTrailingWhiteSpace);
}
项目:irma_future_id    文件:AllTests.java   
public void testRSAKeyGeneration() 
    throws Exception
{   
    RSAKeyPairGenerator.main(new String[] { "test", "password" });

    createSmallTestInput();
    createLargeTestInput();

    checkSigning("bpg");
    checkKeyBasedEncryption("bpg");
    checkLargeKeyBasedEncryption("bpg");

    RSAKeyPairGenerator.main(new String[] { "-a", "test", "password" });

    checkSigning("asc");
    checkKeyBasedEncryption("asc");
    checkLargeKeyBasedEncryption("asc");
}
项目:irma_future_id    文件:AllTests.java   
public void testClearSigned()
    throws Exception
{
    createTestFile(clearSignedPublicKey, "pub.bpg");

    checkClearSignedVerify(nlOnlySignedMessage);
    checkClearSignedVerify(crOnlySignedMessage);
    checkClearSignedVerify(crNlSignedMessage);
    checkClearSignedVerify(crNlSignedMessageTrailingWhiteSpace);

    ClearSignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub.bpg" });

    RSAKeyPairGenerator.main(new String[] { "test", "password" });

    checkClearSigned(crOnlyMessage);
    checkClearSigned(nlOnlyMessage);
    checkClearSigned(crNlMessage);
    checkClearSigned(crNlMessageTrailingWhiteSpace);
}
项目:bc-java    文件:AllTests.java   
public void testRSAKeyGeneration() 
    throws Exception
{   
    RSAKeyPairGenerator.main(new String[] { "test", "password" });

    createSmallTestInput();
    createLargeTestInput();

    checkSigning("bpg");
    checkKeyBasedEncryption("bpg");
    checkLargeKeyBasedEncryption("bpg");

    RSAKeyPairGenerator.main(new String[] { "-a", "test", "password" });

    checkSigning("asc");
    checkKeyBasedEncryption("asc");
    checkLargeKeyBasedEncryption("asc");
}
项目:bc-java    文件:AllTests.java   
public void testClearSigned()
    throws Exception
{
    createTestFile(clearSignedPublicKey, "pub.bpg");

    checkClearSignedVerify(nlOnlySignedMessage);
    checkClearSignedVerify(crOnlySignedMessage);
    checkClearSignedVerify(crNlSignedMessage);
    checkClearSignedVerify(crNlSignedMessageTrailingWhiteSpace);

    ClearSignedFileProcessor.main(new String[] { "-v", "test.txt.asc", "pub.bpg" });

    RSAKeyPairGenerator.main(new String[] { "test", "password" });

    checkClearSigned(crOnlyMessage);
    checkClearSigned(nlOnlyMessage);
    checkClearSigned(crNlMessage);
    checkClearSigned(crNlMessageTrailingWhiteSpace);
}