Cleanup encryption implementation

This commit cleans up the encryption implementation by removing
unnecessary stuff like the en_state and the encrypt parameter.

Signed-off-by: Olof Johansson <dev@skyshaper.net>
Merge pull request #61 from Coi-l/enc

Cleanup encryption implementation