The outgoing(FromClient) data must first be checked if it is encrypted, this is a different case from the incoming data(FromServer).