Docstring and test cleanup for the crypto module