Since libgcrypt doesn't export mpi functions for doing calculations in the ECC domain (point multiplication, normalization etc), I stole ec.c, ec.h and longlong.h from libgcrypt11-1.5.0.