A cipher is a function (or algorithm) for performing encryption / decryption.