It's also probably worth running some simple bit flip fuzz tests to make sure it doesn't raise any other weird error codes for malformed cipher texts.