Update terminology from static keys to handshake keys.

This commit is contained in:
akwizgran
2019-04-17 17:28:22 +01:00
parent e9a3685bfd
commit dcebd5a81c

View File

@@ -962,7 +962,7 @@ public abstract class JdbcDatabaseTest extends BrambleTestCase {
} }
@Test @Test
public void testIncrementStaticStreamCounter() throws Exception { public void testIncrementStreamCounterForHandshakeKeys() throws Exception {
long timePeriod = 123; long timePeriod = 123;
SecretKey rootKey = getSecretKey(); SecretKey rootKey = getSecretKey();
boolean alice = random.nextBoolean(); boolean alice = random.nextBoolean();
@@ -977,7 +977,8 @@ public abstract class JdbcDatabaseTest extends BrambleTestCase {
assertEquals(contactId, db.addContact(txn, author, localAuthor.getId(), assertEquals(contactId, db.addContact(txn, author, localAuthor.getId(),
true, true)); true, true));
db.addTransport(txn, transportId, 123); db.addTransport(txn, transportId, 123);
assertEquals(handshakeKeySetId, db.addHandshakeKeys(txn, contactId, keys)); assertEquals(handshakeKeySetId,
db.addHandshakeKeys(txn, contactId, keys));
// Increment the stream counter twice and retrieve the handshake keys // Increment the stream counter twice and retrieve the handshake keys
db.incrementStreamCounter(txn, transportId, handshakeKeySetId); db.incrementStreamCounter(txn, transportId, handshakeKeySetId);
@@ -1054,7 +1055,7 @@ public abstract class JdbcDatabaseTest extends BrambleTestCase {
} }
@Test @Test
public void testSetStaticReorderingWindow() throws Exception { public void testSetReorderingWindowForHandshakeKeys() throws Exception {
long timePeriod = 123; long timePeriod = 123;
SecretKey rootKey = getSecretKey(); SecretKey rootKey = getSecretKey();
boolean alice = random.nextBoolean(); boolean alice = random.nextBoolean();