Update usage of beto-rust UKEY2 APIs

Bug: 277779968
Test: Test using permission sync test app
Change-Id: I5e0a0acbba77e2ddc7ec50eb4074d039472cee9b
This commit is contained in:
Maurice Lam
2023-04-11 18:43:33 +00:00
parent 85b00fa9b1
commit 99afd9fadf

View File

@@ -28,7 +28,6 @@ import com.google.security.cryptauth.lib.securegcm.CryptoException;
import com.google.security.cryptauth.lib.securegcm.D2DConnectionContextV1;
import com.google.security.cryptauth.lib.securegcm.D2DHandshakeContext;
import com.google.security.cryptauth.lib.securegcm.D2DHandshakeContext.Role;
import com.google.security.cryptauth.lib.securegcm.DefaultUkey2Logger;
import com.google.security.cryptauth.lib.securegcm.HandshakeException;
import libcore.io.IoUtils;
@@ -329,7 +328,7 @@ public class SecureChannel {
}
mRole = Role.Initiator;
mHandshakeContext = D2DHandshakeContext.forInitiator(DefaultUkey2Logger.INSTANCE);
mHandshakeContext = D2DHandshakeContext.forInitiator();
// Send Client Init
if (DEBUG) {
@@ -350,7 +349,7 @@ public class SecureChannel {
if (mHandshakeContext == null) { // Server-side logic
mRole = Role.Responder;
mHandshakeContext = D2DHandshakeContext.forResponder(DefaultUkey2Logger.INSTANCE);
mHandshakeContext = D2DHandshakeContext.forResponder();
// Receive Client Init
if (DEBUG) {