Home
last modified time | relevance | path

Searched refs:handshakeState (Results 1 – 3 of 3) sorted by relevance

/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DD2DDiffieHellmanKeyExchangeHandshake.java76 private State handshakeState; field in D2DDiffieHellmanKeyExchangeHandshake
99 handshakeState = state; in D2DDiffieHellmanKeyExchangeHandshake()
120 return handshakeState == State.HANDSHAKE_FINISHED in isHandshakeComplete()
121 || handshakeState == State.HANDSHAKE_ALREADY_USED; in isHandshakeComplete()
126 switch(handshakeState) { in getNextHandshakeMessage()
128 handshakeState = State.INITIATOR_WAITING_FOR_RESPONDER_HELLO; in getNextHandshakeMessage()
137 handshakeState = State.HANDSHAKE_FINISHED; in getNextHandshakeMessage()
141 throw new HandshakeException("Cannot get next message in state: " + handshakeState); in getNextHandshakeMessage()
147 return handshakeState == State.RESPONDER_AFTER_INITIATOR_HELLO; in canSendPayloadInHandshakeMessage()
152 if (handshakeState != State.RESPONDER_AFTER_INITIATOR_HELLO) { in getNextHandshakeMessage()
[all …]
DD2DSpakeEd25519Handshake.java230 private State handshakeState; field in D2DSpakeEd25519Handshake
273 handshakeState = state; in D2DSpakeEd25519Handshake()
289 switch (handshakeState) { in isHandshakeComplete()
304 switch(handshakeState) { in getNextHandshakeMessage()
307 handshakeState = State.INITIATOR_WAITING_FOR_RESPONDER_COMMITMENT; in getNextHandshakeMessage()
312 handshakeState = State.RESPONDER_WAITING_FOR_INITIATOR_HASH; in getNextHandshakeMessage()
317 handshakeState = State.INITIATOR_WAITING_FOR_RESPONDER_HASH; in getNextHandshakeMessage()
322 handshakeState = State.HANDSHAKE_FINISHED; in getNextHandshakeMessage()
326 throw new HandshakeException("Cannot get next message in state: " + handshakeState); in getNextHandshakeMessage()
336 switch (handshakeState) { in getNextHandshakeMessage()
[all …]
DUkey2Handshake.java242 private InternalState handshakeState; field in Ukey2Handshake
304 this.handshakeState = state; in Ukey2Handshake()
316 switch (handshakeState) { in getNextHandshakeMessage()
319 handshakeState = InternalState.CLIENT_WAITING_FOR_SERVER_INIT; in getNextHandshakeMessage()
324 handshakeState = InternalState.SERVER_WAITING_FOR_CLIENT_FINISHED; in getNextHandshakeMessage()
335 handshakeState = InternalState.HANDSHAKE_VERIFICATION_NEEDED; in getNextHandshakeMessage()
339 throwIllegalStateException("Cannot get next message in state: " + handshakeState); in getNextHandshakeMessage()
357 if (handshakeState != InternalState.HANDSHAKE_VERIFICATION_NEEDED) { in getVerificationString()
358 throwIllegalStateException("Unexpected state: " + handshakeState); in getVerificationString()
396 handshakeState = InternalState.HANDSHAKE_VERIFICATION_IN_PROGRESS; in getVerificationString()
[all …]