Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99afd9fa authored by Maurice Lam's avatar Maurice Lam
Browse files

Update usage of beto-rust UKEY2 APIs

Bug: 277779968
Test: Test using permission sync test app
Change-Id: I5e0a0acbba77e2ddc7ec50eb4074d039472cee9b
parent 85b00fa9
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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) {