Add encrypt and decrypt functions to BlockCipher