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>