Unified Formal Model for Synchronous and Self-Synchronizing Stream Ciphers. (2017)