Frame-at-a-time decryption.

This commit is contained in:
akwizgran
2012-01-12 18:41:43 +00:00
parent f55f98f506
commit f6cad10868
13 changed files with 184 additions and 274 deletions

View File

@@ -90,7 +90,7 @@ public class FrameReadWriteTest extends BriarTestCase {
assertTrue(TagEncoder.validateTag(tag, 0, tagCipher, tagKey));
// Read the frames back
ConnectionDecrypter decrypter = new ConnectionDecrypterImpl(in,
frameCipher, frameKey);
frameCipher, frameKey, mac.getMacLength());
ConnectionReader reader = new ConnectionReaderImpl(decrypter, mac,
macKey);
InputStream in1 = reader.getInputStream();