mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
18 lines
499 B
Java
18 lines
499 B
Java
package org.briarproject.api.crypto;
|
|
|
|
import java.io.OutputStream;
|
|
|
|
import org.briarproject.api.transport.StreamContext;
|
|
|
|
public interface StreamEncrypterFactory {
|
|
|
|
/** Creates a {@link StreamEncrypter} for encrypting a transport stream. */
|
|
StreamEncrypter createStreamEncrypter(OutputStream out, StreamContext ctx);
|
|
|
|
/**
|
|
* Creates a {@link StreamEncrypter} for encrypting an invitation stream.
|
|
*/
|
|
StreamEncrypter createInvitationStreamEncrypter(OutputStream out,
|
|
SecretKey headerKey);
|
|
}
|