Cleaned up boundary cases for decryption. (#5)