private void InitCiphers() { CfbBlockCipher encryptor = new CfbBlockCipher(new AesEngine(), 8); CfbBlockCipher decryptor = new CfbBlockCipher(new AesEngine(), 8); encryptor.Init(true, new ParametersWithIV(new KeyParameter(SharedKey), SharedKey)); decryptor.Init(false, new ParametersWithIV(new KeyParameter(SharedKey), SharedKey)); encStream = new StreamBlockCipher(encryptor); decStream = new StreamBlockCipher(decryptor); }