mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Moved stream crypto to crypto component.
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package org.briarproject.api.crypto;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
public interface StreamEncrypter {
|
||||
|
||||
/** Encrypts the given frame and writes it to the stream. */
|
||||
void writeFrame(byte[] payload, int payloadLength, boolean finalFrame)
|
||||
throws IOException;
|
||||
|
||||
/** Flushes the stream. */
|
||||
void flush() throws IOException;
|
||||
}
|
||||
Reference in New Issue
Block a user