mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
18 lines
494 B
Java
18 lines
494 B
Java
package org.briarproject.api.crypto;
|
|
|
|
import java.io.InputStream;
|
|
|
|
import org.briarproject.api.transport.StreamContext;
|
|
|
|
public interface StreamDecrypterFactory {
|
|
|
|
/** Creates a {@link StreamDecrypter} for decrypting a transport stream. */
|
|
StreamDecrypter createStreamDecrypter(InputStream in, StreamContext ctx);
|
|
|
|
/**
|
|
* Creates a {@link StreamDecrypter} for decrypting an invitation stream.
|
|
*/
|
|
StreamDecrypter createInvitationStreamDecrypter(InputStream in,
|
|
SecretKey headerKey);
|
|
}
|