GPG4Win slow to start

Werner Koch wk at gnupg.org
Sat Jun 13 18:44:22 CEST 2026


Hi!

> I dual boot between Linux and Windows on the same hardware. The gnupg
> folders are identical between both systems. Linux is almost
> instantaneous and Windows is not.

Interesting data point.  We have a few reports from some cusomers where
some users experience sometimes huge delays.  It is not easy to track
down but a common problem on Windows is anti-malware software (e.g.
Symantec Endpoint Protection) in certain configurations.  To test diable
such software, restart backend process (or on the CLI "gpgconf -K all"),
and check again.

I _may_ even be an answer to the sometimes way longer delays you see
noticed; the system may have called home for further analysis.

> ... and the time stamps show about 14 seconds from me trying to
> decrypt something to it actually getting decrypted. That's a good
> day. Sometimes it takes upwards of 45 seconds or more, with the
> biggest time delta being from "connection to the agent established" to
> "pinentry launched".

That is also interesting.  You may want to enable a log for the
gpg-agent at basic debug level or just with verbose.  But as a first
test you may run on the command line:

  gpg-connect-agent "getinfo s2k_count_cal" "getinfo s2k_time" /bye

The output will besomething like:

  D 53686272
  OK
  D 101
  OK

These are the calibrated interation counts.  When gpg-agent is first
started it checks which KDF parameters are required to let the KDF take
100ms on that system.  It is actually the same function on Windows on
and Linux but the way the times are retrieved from the OS are different.
Frankly, I doubt that this is the reason but who knows.


Shalom-Salam,

   Werner

-- 
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 284 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20260613/46b6c275/attachment.sig>


More information about the Gnupg-users mailing list