mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Derive rendezvous key from static master key.
This commit is contained in:
@@ -21,7 +21,7 @@ public interface RendezvousConstants {
|
||||
long POLLING_INTERVAL_MS = MINUTES.toMillis(1);
|
||||
|
||||
/**
|
||||
* Label for deriving the rendezvous key from the handshake key pairs.
|
||||
* Label for deriving the rendezvous key from the static master key.
|
||||
*/
|
||||
String RENDEZVOUS_KEY_LABEL =
|
||||
"org.briarproject.bramble.rendezvous/RENDEZVOUS_KEY";
|
||||
|
||||
@@ -1,18 +1,13 @@
|
||||
package org.briarproject.bramble.api.rendezvous;
|
||||
|
||||
import org.briarproject.bramble.api.crypto.KeyPair;
|
||||
import org.briarproject.bramble.api.crypto.PublicKey;
|
||||
import org.briarproject.bramble.api.crypto.SecretKey;
|
||||
import org.briarproject.bramble.api.nullsafety.NotNullByDefault;
|
||||
import org.briarproject.bramble.api.plugin.TransportId;
|
||||
|
||||
import java.security.GeneralSecurityException;
|
||||
|
||||
@NotNullByDefault
|
||||
public interface RendezvousCrypto {
|
||||
|
||||
SecretKey deriveRendezvousKey(PublicKey theirPublicKey, KeyPair ourKeyPair)
|
||||
throws GeneralSecurityException;
|
||||
SecretKey deriveRendezvousKey(SecretKey staticMasterKey);
|
||||
|
||||
KeyMaterialSource createKeyMaterialSource(SecretKey rendezvousKey,
|
||||
TransportId t);
|
||||
|
||||
Reference in New Issue
Block a user