Cryptography primitives in C