Merge pull request #1 from jschanck-si/master

Zero and free scratch_buf after error in decrypt
Cleaned up bad parameter checking logic

The logic was organized in a way that made it difficult
to get ct_len and pt_len with dummy calls to encrypt/decrypt.