Cryptographic utility functions.
