try {
AsymmetricKeyParameter publicKey = PublicKeyFactory.createKey(message.getSecretArray());
cipher.init(SecurityHandler.ENCRYPT_MODE, publicKey);
byte[] encodedSecret = cipher.processBlock(sharedSecret, 0, 16);
byte[] encodedToken = cipher.processBlock(message.getVerifyTokenArray(), 0, 4);
String streamCipher = VanillaConfiguration.ENCRYPT_STREAM_ALGORITHM.getString();
String streamWrapper = VanillaConfiguration.ENCRYPT_STREAM_WRAPPER.getString();
BufferedBlockCipher toServerCipher = SecurityHandler.getInstance().getSymmetricCipher(streamCipher, streamWrapper);