Added checks for encryption/decryption lengths that they must