.load("key", "AES_KEY").getBytes()));
waitForResponse(ExchSharedKeyResponse.class);
sendText(message);
break;
case SHARED_KEY_EXCHANGED:
send(new SendTextRequest(ck.getA(), ck.getB(), message));
waitForResponse(SendTextResponse.class);
// Check self state to determine whether need to resend
if (!(clientState.getCurrentState() == CState.SHARED_KEY_EXCHANGED)) {
// Error encountered, Resend
sendText(message);