split EncryptionChannel into Server and Client Side