Improve crypto_util coverage

This PR includes commits from #126.
@jdkasten This assertion fails and I'm know sure if it's the intended behavior... What do you think?