Peronsal common math library for cryptography