Some handy functionality for asymmetric cryptography users.

This should probably use `sodium_memcmp()` or `crypto_verify_32()`.