Use thread-safe libgcrypt and libgpg-error functions. Only call the new