Encrypter and decrypter for segmented transports (untested).

This commit is contained in:
akwizgran
2012-01-13 11:54:55 +00:00
parent ab9b05448d
commit 90e54d94e6
17 changed files with 264 additions and 115 deletions

View File

@@ -2,11 +2,10 @@ package net.sf.briar.transport;
import java.io.IOException;
/** Encrypts authenticated data to be sent over a connection. */
interface ConnectionEncrypter {
import net.sf.briar.api.plugins.FrameSink;
/** Encrypts and writes the given frame. */
void writeFrame(byte[] b, int len) throws IOException;
/** Encrypts authenticated data to be sent over a connection. */
interface ConnectionEncrypter extends FrameSink {
/** Flushes the output stream. */
void flush() throws IOException;