mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Added an initiator flag (bit 31) to the IV.
The flag is used to distinguish between the initiator and responder directions of a stream-mode connection, allowing them to use the same connection number without risking IV reuse. The flag is also raised for batch-mode connections, which only have one direction.
This commit is contained in:
@@ -4,6 +4,6 @@ import java.io.InputStream;
|
||||
|
||||
public interface ConnectionReaderFactory {
|
||||
|
||||
ConnectionReader createConnectionReader(InputStream in, int transportId,
|
||||
long connection, byte[] secret);
|
||||
ConnectionReader createConnectionReader(InputStream in, boolean initiator,
|
||||
int transportId, long connection, byte[] secret);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@ import java.io.OutputStream;
|
||||
|
||||
public interface ConnectionWriterFactory {
|
||||
|
||||
ConnectionWriter createConnectionWriter(OutputStream out, int transportId,
|
||||
long connection, byte[] secret);
|
||||
ConnectionWriter createConnectionWriter(OutputStream out, boolean initiator,
|
||||
int transportId, long connection, byte[] secret);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user