Trying to implement gcrypt in c, not working yet