Files
briar/components/net/sf/briar/transport/PacketDecrypter.java
akwizgran 2c387f80b1 Packet decrypter with unit tests. Decryption is complicated by the
fact that the cipher wants to operate a block at a time even though
it's in CTR mode.
2011-08-12 17:14:58 +02:00

14 lines
335 B
Java

package net.sf.briar.transport;
import java.io.IOException;
import java.io.InputStream;
interface PacketDecrypter {
/** Returns the input stream from which packets should be read. */
InputStream getInputStream();
/** Reads, decrypts and returns a tag from the underlying input stream. */
byte[] readTag() throws IOException;
}