Re: GPG4Win slow to start

Werner Koch via Gnupg-users <[email protected]> Sat, 13 Jun 2026 18:44:22 +0200
Newsgroups gmane.comp.encryption.gpg.user
Message-ID <[email protected]>
--===============2710780809383319692==
Content-Type: multipart/signed; boundary="=HoHoCon_Uzbekistan_Barrio_Azteca_Forest_fire_Attack_initiative=Meta-";
	micalg=pgp-sha512; protocol="application/pgp-signature"

--=HoHoCon_Uzbekistan_Barrio_Azteca_Forest_fire_Attack_initiative=Meta-
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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

=2D-=20
The pioneers of a warless world are the youth that
refuse military service.             - A. Einstein

--=HoHoCon_Uzbekistan_Barrio_Azteca_Forest_fire_Attack_initiative=Meta-
Content-Type: application/pgp-signature; name="openpgp-digital-signature.asc"

-----BEGIN PGP SIGNATURE-----

iJ8EARYKAEcWIQSHd0YfKgdOvEgNNZQZzByeCFsQegUCai2I5hsUgAAAAAAEAA5t
YW51MiwyLjUrMS4xMSwyLDINHHdrQGdudXBnLm9yZwAKCRAZzByeCFsQeu1gAP9S
YBMyIkAnOpsgYMuMPpJfLJLA6ue9Qnt4xHqsdTaPawD/QFfNaOrZLkLFvsO7RexG
XsG85F4wk8mnI/jIjRQUAww=
=meNB
-----END PGP SIGNATURE-----
--=HoHoCon_Uzbekistan_Barrio_Azteca_Forest_fire_Attack_initiative=Meta---



--===============2710780809383319692==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Gnupg-users mailing list
[email protected]
https://lists.gnupg.org/mailman/listinfo/gnupg-users

--===============2710780809383319692==--