mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Expose the encryption and authentication overhead without breaking
encapsulation. This should allow callers to calculate maximum packet sizes without knowing the details of the transport protocol.
This commit is contained in:
@@ -19,4 +19,8 @@ class NullConnectionEncrypter implements ConnectionEncrypter {
|
||||
public void writeMac(byte[] mac) throws IOException {
|
||||
out.write(mac);
|
||||
}
|
||||
|
||||
public long getCapacity(long capacity) {
|
||||
return capacity;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user