A bunch of cryptographic function implementations