Add comment about tag reuse.

This commit is contained in:
akwizgran
2019-06-03 12:48:14 +01:00
parent 1b8692a216
commit fe83a59d2a

View File

@@ -24,7 +24,9 @@ public interface TransportCrypto {
KeyPair ourHandshakeKeyPair) throws GeneralSecurityException;
/**
* Derives the handshake mode root key from the static master key.
* Derives the handshake mode root key from the static master key. To
* prevent tag reuse, separate root keys are derived for contacts and
* pending contacts.
*
* @param pendingContact Whether the static master key is shared with a
* pending contact or a contact