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

项目:CryptMeme    文件:AllTests.java   
private void checkLargeKeyBasedEncryption(String type)
    throws Exception
{
    _currentErr.reset();

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.bpg", "secret." + type, "password" });

    assertEquals("no message integrity check", getLine(_currentErr));

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "-i", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.bpg", "secret." + type, "password" });

    assertEquals("message integrity check passed", getLine(_currentErr));

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "-ai", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.asc", "secret." + type, "password" });

    assertEquals("message integrity check passed", getLine(_currentErr));
}
项目:irma_future_id    文件:AllTests.java   
private void checkLargeKeyBasedEncryption(String type)
    throws Exception
{
    _currentErr.reset();

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.bpg", "secret." + type, "password" });

    assertEquals("no message integrity check", getLine(_currentErr));

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "-i", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.bpg", "secret." + type, "password" });

    assertEquals("message integrity check passed", getLine(_currentErr));

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "-ai", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.asc", "secret." + type, "password" });

    assertEquals("message integrity check passed", getLine(_currentErr));
}
项目:bc-java    文件:AllTests.java   
private void checkLargeKeyBasedEncryption(String type)
    throws Exception
{
    _currentErr.reset();

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.bpg", "secret." + type, "password" });

    assertEquals("no message integrity check", getLine(_currentErr));

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "-i", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.bpg", "secret." + type, "password" });

    assertEquals("message integrity check passed", getLine(_currentErr));

    KeyBasedLargeFileProcessor.main(new String[] { "-e", "-ai", "large.txt", "pub." + type });

    KeyBasedLargeFileProcessor.main(new String[] { "-d", "large.txt.asc", "secret." + type, "password" });

    assertEquals("message integrity check passed", getLine(_currentErr));
}