mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-11 22:21:48 +00:00
Rename InitializationParameters -> AxolotlParameters
This commit is contained in:
@@ -26,7 +26,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Random;
|
||||
|
||||
import static org.whispersystems.libaxolotl.ratchet.RatchetingSession.InitializationParameters;
|
||||
import static org.whispersystems.libaxolotl.ratchet.RatchetingSession.AxolotlParameters;
|
||||
|
||||
public class SessionCipherTest extends AndroidTestCase {
|
||||
|
||||
@@ -138,8 +138,8 @@ public class SessionCipherTest extends AndroidTestCase {
|
||||
ECKeyPair bobBaseKey = Curve.generateKeyPair(true);
|
||||
ECKeyPair bobEphemeralKey = bobBaseKey;
|
||||
|
||||
InitializationParameters aliceParameters =
|
||||
InitializationParameters.newBuilder()
|
||||
AxolotlParameters aliceParameters =
|
||||
AxolotlParameters.newBuilder()
|
||||
.setOurIdentityKey(aliceIdentityKey)
|
||||
.setOurBaseKey(aliceBaseKey)
|
||||
.setOurEphemeralKey(aliceEphemeralKey)
|
||||
@@ -150,8 +150,8 @@ public class SessionCipherTest extends AndroidTestCase {
|
||||
.setTheirPreKey(Optional.<ECPublicKey>absent())
|
||||
.create();
|
||||
|
||||
InitializationParameters bobParameters =
|
||||
InitializationParameters.newBuilder()
|
||||
AxolotlParameters bobParameters =
|
||||
RatchetingSession.AxolotlParameters.newBuilder()
|
||||
.setOurIdentityKey(bobIdentityKey)
|
||||
.setOurBaseKey(bobBaseKey)
|
||||
.setOurEphemeralKey(bobEphemeralKey)
|
||||
@@ -186,8 +186,8 @@ public class SessionCipherTest extends AndroidTestCase {
|
||||
|
||||
ECKeyPair bobPreKey = Curve.generateKeyPair(true);
|
||||
|
||||
InitializationParameters aliceParameters =
|
||||
InitializationParameters.newBuilder()
|
||||
AxolotlParameters aliceParameters =
|
||||
AxolotlParameters.newBuilder()
|
||||
.setOurIdentityKey(aliceIdentityKey)
|
||||
.setOurBaseKey(aliceBaseKey)
|
||||
.setOurEphemeralKey(aliceEphemeralKey)
|
||||
@@ -198,8 +198,8 @@ public class SessionCipherTest extends AndroidTestCase {
|
||||
.setTheirPreKey(Optional.of(bobPreKey.getPublicKey()))
|
||||
.create();
|
||||
|
||||
InitializationParameters bobParameters =
|
||||
InitializationParameters.newBuilder()
|
||||
AxolotlParameters bobParameters =
|
||||
AxolotlParameters.newBuilder()
|
||||
.setOurIdentityKey(bobIdentityKey)
|
||||
.setOurBaseKey(bobBaseKey)
|
||||
.setOurEphemeralKey(bobEphemeralKey)
|
||||
|
||||
@@ -15,7 +15,7 @@ import org.whispersystems.libaxolotl.util.guava.Optional;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
||||
import static org.whispersystems.libaxolotl.ratchet.RatchetingSession.InitializationParameters;
|
||||
import static org.whispersystems.libaxolotl.ratchet.RatchetingSession.AxolotlParameters;
|
||||
|
||||
public class RatchetingSessionTest extends AndroidTestCase {
|
||||
|
||||
@@ -108,7 +108,7 @@ public class RatchetingSessionTest extends AndroidTestCase {
|
||||
ECPublicKey aliceEphemeralPublicKey = Curve.decodePoint(aliceEphemeralPublic, 0);
|
||||
IdentityKey aliceIdentityPublicKey = new IdentityKey(aliceIdentityPublic, 0);
|
||||
|
||||
InitializationParameters parameters = InitializationParameters.newBuilder()
|
||||
AxolotlParameters parameters = AxolotlParameters.newBuilder()
|
||||
.setOurBaseKey(bobBaseKey)
|
||||
.setOurEphemeralKey(bobEphemeralKey)
|
||||
.setOurIdentityKey(bobIdentityKey)
|
||||
@@ -217,7 +217,7 @@ public class RatchetingSessionTest extends AndroidTestCase {
|
||||
|
||||
SessionState session = new SessionState();
|
||||
|
||||
InitializationParameters parameters = InitializationParameters.newBuilder()
|
||||
AxolotlParameters parameters = AxolotlParameters.newBuilder()
|
||||
.setOurBaseKey(aliceBaseKey)
|
||||
.setOurEphemeralKey(aliceEphemeralKey)
|
||||
.setOurIdentityKey(aliceIdentityKey)
|
||||
|
||||
Reference in New Issue
Block a user