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)); }