Add more checks for invalid inputs
Implement CF2
Implement DES3