Files
briar/briar-api/src/org/briarproject/api/crypto/StreamEncrypter.java
2015-01-05 17:35:45 +00:00

14 lines
344 B
Java

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, int paddingLength,
boolean finalFrame) throws IOException;
/** Flushes the stream. */
void flush() throws IOException;
}