Factor out OpenPGP cipher mode in separate module