Got the encryption/decryption working as desired.
Fixed the spelling of the cipher's name.