/packages/apps/Car/libs/EncryptionRunner/src/android/car/encryptionrunner/ |
D | HandshakeMessage.java | 36 @IntDef({HandshakeState.UNKNOWN, HandshakeState.IN_PROGRESS, HandshakeState.VERIFICATION_NEEDED, 37 HandshakeState.FINISHED, HandshakeState.INVALID, HandshakeState.RESUMING_SESSION,}) 38 public @interface HandshakeState { annotation in HandshakeMessage 65 @HandshakeState 82 @HandshakeState int handshakeState, in HandshakeMessage() 103 @HandshakeState 125 @HandshakeState 131 Builder setHandshakeState(@HandshakeState int handshakeState) { in setHandshakeState() 152 if (mHandshakeState == HandshakeState.UNKNOWN) { in build() 155 if (mHandshakeState == HandshakeState.VERIFICATION_NEEDED in build()
|
D | DummyEncryptionRunner.java | 57 @HandshakeMessage.HandshakeState 64 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in initHandshake() 79 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in respondToInitRequest() 81 .setHandshakeState(HandshakeMessage.HandshakeState.IN_PROGRESS) in respondToInitRequest() 87 if (mState != HandshakeMessage.HandshakeState.UNKNOWN) { in checkRunnerIsNew() 94 if (mState != HandshakeMessage.HandshakeState.IN_PROGRESS) { in continueHandshake() 102 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() 105 mState = HandshakeMessage.HandshakeState.RESUMING_SESSION; in continueHandshake() 115 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() 118 mState = HandshakeMessage.HandshakeState.RESUMING_SESSION; in continueHandshake() [all …]
|
D | Ukey2EncryptionRunner.java | 265 .setHandshakeState(HandshakeMessage.HandshakeState.FINISHED) in authenticateReconnection() 277 .setHandshakeState(HandshakeMessage.HandshakeState.FINISHED) in authenticateReconnection() 312 .setHandshakeState(HandshakeMessage.HandshakeState.RESUMING_SESSION) in initReconnectAuthentication() 317 .setHandshakeState(HandshakeMessage.HandshakeState.RESUMING_SESSION) in initReconnectAuthentication() 326 @HandshakeMessage.HandshakeState 335 return HandshakeMessage.HandshakeState.RESUMING_SESSION; in getHandshakeState() 337 return HandshakeMessage.HandshakeState.FINISHED; in getHandshakeState() 339 return HandshakeMessage.HandshakeState.IN_PROGRESS; in getHandshakeState() 342 return HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in getHandshakeState()
|
/packages/services/Car/EncryptionRunner/src/android/car/encryptionrunner/ |
D | HandshakeMessage.java | 37 HandshakeState.UNKNOWN, 38 HandshakeState.IN_PROGRESS, 39 HandshakeState.VERIFICATION_NEEDED, 40 HandshakeState.FINISHED, 41 HandshakeState.INVALID}) 42 public @interface HandshakeState { annotation in HandshakeMessage 65 @HandshakeState private final int mHandshakeState; 81 @HandshakeState int handshakeState, in HandshakeMessage() 102 @HandshakeState 124 @HandshakeState int mHandshakeState; [all …]
|
D | DummyEncryptionRunner.java | 53 @HandshakeMessage.HandshakeState 60 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in initHandshake() 75 mState = HandshakeMessage.HandshakeState.IN_PROGRESS; in respondToInitRequest() 77 .setHandshakeState(HandshakeMessage.HandshakeState.IN_PROGRESS) in respondToInitRequest() 83 if (mState != HandshakeMessage.HandshakeState.UNKNOWN) { in checkRunnerIsNew() 90 if (mState != HandshakeMessage.HandshakeState.IN_PROGRESS) { in continueHandshake() 98 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() 107 mState = HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in continueHandshake() 125 if (mState != HandshakeMessage.HandshakeState.VERIFICATION_NEEDED) { in verifyPin() 128 mState = HandshakeMessage.HandshakeState.FINISHED; in verifyPin() [all …]
|
D | Ukey2EncryptionRunner.java | 177 @HandshakeMessage.HandshakeState 185 return HandshakeMessage.HandshakeState.FINISHED; in getHandshakeState() 187 return HandshakeMessage.HandshakeState.IN_PROGRESS; in getHandshakeState() 190 return HandshakeMessage.HandshakeState.VERIFICATION_NEEDED; in getHandshakeState()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/ |
D | SecureBleChannel.java | 29 import android.car.encryptionrunner.HandshakeMessage.HandshakeState; 94 private @HandshakeState int mState = HandshakeState.UNKNOWN; 120 case HandshakeState.UNKNOWN: in processHandshake() 123 case HandshakeState.IN_PROGRESS: in processHandshake() 126 case HandshakeState.RESUMING_SESSION: in processHandshake() 165 && mState == HandshakeState.VERIFICATION_NEEDED; in processHandshakeInProgress() 167 && mState == HandshakeState.RESUMING_SESSION; in processHandshakeInProgress() 212 if (mState != HandshakeState.FINISHED) { in processHandshakeResumingSession() 302 if (message.getHandshakeState() != HandshakeState.FINISHED) { in notifyOutOfBandAccepted()
|
/packages/services/Car/service/src/com/android/car/trust/ |
D | CarTrustAgentUnlockService.java | 143 @HandshakeMessage.HandshakeState 144 private int mEncryptionState = HandshakeMessage.HandshakeState.UNKNOWN; 372 case HandshakeMessage.HandshakeState.UNKNOWN: in processKeyExchangeHandshakeMessage() 386 case HandshakeMessage.HandshakeState.IN_PROGRESS: in processKeyExchangeHandshakeMessage() 400 if (mEncryptionState == HandshakeMessage.HandshakeState.VERIFICATION_NEEDED) { in processKeyExchangeHandshakeMessage() 411 case HandshakeMessage.HandshakeState.VERIFICATION_NEEDED: in processKeyExchangeHandshakeMessage() 412 case HandshakeMessage.HandshakeState.FINISHED: in processKeyExchangeHandshakeMessage() 443 if (handshakeMessage.getHandshakeState() != HandshakeMessage.HandshakeState.FINISHED) { in showVerificationCode() 450 mEncryptionState = HandshakeMessage.HandshakeState.FINISHED; in showVerificationCode() 558 mEncryptionState = HandshakeMessage.HandshakeState.UNKNOWN; in resetEncryptionState()
|
D | CarTrustAgentEnrollmentService.java | 44 import android.car.encryptionrunner.HandshakeMessage.HandshakeState; 120 @HandshakeState 121 int mEncryptionState = HandshakeState.UNKNOWN; 705 case HandshakeState.UNKNOWN: in processInitEncryptionMessage() 719 case HandshakeState.IN_PROGRESS: in processInitEncryptionMessage() 733 if (mEncryptionState == HandshakeState.VERIFICATION_NEEDED) { in processInitEncryptionMessage() 741 case HandshakeState.VERIFICATION_NEEDED: in processInitEncryptionMessage() 749 case HandshakeState.FINISHED: in processInitEncryptionMessage() 800 mEncryptionState = HandshakeState.UNKNOWN; in resetEncryptionState() 820 if (message.getHandshakeState() != HandshakeState.FINISHED) { in setEnrollmentHandshakeAccepted() [all …]
|
/packages/services/Car/EncryptionRunner/test/android/car/encryptionrunner/ |
D | EncryptionRunnerTest.java | 61 .isEqualTo(HandshakeMessage.HandshakeState.FINISHED); in verifyRunners() 67 .isEqualTo(HandshakeMessage.HandshakeState.FINISHED); in verifyRunners() 84 .isEqualTo(HandshakeMessage.HandshakeState.IN_PROGRESS); in verifyHandshake() 97 .isEqualTo(HandshakeMessage.HandshakeState.IN_PROGRESS); in verifyHandshake() 108 .isEqualTo(HandshakeMessage.HandshakeState.VERIFICATION_NEEDED); in verifyHandshake() 119 .isEqualTo(HandshakeMessage.HandshakeState.VERIFICATION_NEEDED); in verifyHandshake()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/trust/ |
D | CarTrustAgentEnrollmentServiceTest.java | 136 HandshakeMessage.HandshakeState.UNKNOWN); in testEncryptionHandshake() 145 HandshakeMessage.HandshakeState.IN_PROGRESS); in testEncryptionHandshake() 153 HandshakeMessage.HandshakeState.VERIFICATION_NEEDED); in testEncryptionHandshake() 162 HandshakeMessage.HandshakeState.FINISHED); in testEncryptionHandshake()
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/eap/statemachine/ |
D | EapTtlsCreatedStateTest.java | 35 import com.android.internal.net.eap.statemachine.EapTtlsMethodStateMachine.HandshakeState; 53 assertTrue(mStateMachine.getState() instanceof HandshakeState); in testStartRequest()
|
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/ |
D | EapTtlsMethodStateMachine.java | 120 return transitionAndProcess(new HandshakeState(), message); in process() 133 protected class HandshakeState extends EapMethodState { class in EapTtlsMethodStateMachine
|