<feed xmlns='http://www.w3.org/2005/Atom'>
<title>wireguard-windows/embeddable-dll-service, branch master</title>
<subtitle>WireGuard client for Windows</subtitle>
<id>https://git.zx2c4.com/wireguard-windows/atom/embeddable-dll-service?h=master</id>
<link rel='self' href='https://git.zx2c4.com/wireguard-windows/atom/embeddable-dll-service?h=master'/>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/'/>
<updated>2026-09-22T21:05:45Z</updated>
<entry>
<title>overlay: stub out crypto/rand FIPS140 garbage</title>
<updated>2026-09-22T21:05:45Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-09-22T12:15:18Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=6ece77bc487c8aa697e3c092197621c4f3e5ccb8'/>
<id>urn:sha1:6ece77bc487c8aa697e3c092197621c4f3e5ccb8</id>
<content type='text'>
The Go crypto library used to be simple and nice and an example of how
to do things well. Unfortunately, the addition of FIPS140 to it has
brought disgusting enterprise patterns and gummed up the code. One place
this really comes out is in the insane infrastructure behind the RNG. It
really only should be calling the system random functions and nothing
more. But in contemporary Go, simply calling into the RNG brings along
with it in the binary:

- A bizarre voodoo magic userspace entropy collector
- A specialized SHA384 implementation for said entropy collector
- An AES implementation
- An AES-NI accelerated AES implementation
- A CTR implementation for AES
- A GCM implementation for AES
- Some CPU detection code
- An implementation of some FIPS-specified DRBG algorithm
- An HMAC implementation
- A SHA256 implementation
- An AVX2-accelerated SHA256 implementation
- A SHA3 implementation (including cSHAKE)
- An AVX2-accelerated SHA3 implementation
- A SHA512 implementation
- Some generic XOR-bytes routines
- The actual syscall wrappers for getting random numbers

Obviously this is completely insane. There's a tangled mess of
components including eachother, a disorganized patchwork of FIPS code
and BoringCrypto code and enterprisey API hooks and self checks and
auto-included initializers. It seems like a mess of a library these
days.

So, here we beat down this madness by using a Go build overlay to
replace various parts of the crypto library with stub functions. This is
pretty nasty. But at least it compiles out some of this junk.

I'm trying to fix this upstream in the meanwhile [1], and so we'll see
what comes of that.

Link: https://github.com/golang/go/issues/81639
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>build: restore separate Go directory on Windows</title>
<updated>2026-09-22T19:48:03Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-09-22T18:57:24Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=5a7faacb09f086c6abccdf72f918428c4c821fe5'/>
<id>urn:sha1:5a7faacb09f086c6abccdf72f918428c4c821fe5</id>
<content type='text'>
Keep the Go toolchain under .deps\go to match the Linux build layout.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: use crypto/ecdh for X25519</title>
<updated>2026-09-22T19:48:03Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-09-22T19:36:51Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=7b2f7adcaa4346d10d340f93c840bda82fbc204b'/>
<id>urn:sha1:7b2f7adcaa4346d10d340f93c840bda82fbc204b</id>
<content type='text'>
Use crypto/ecdh directly, because the old x/crypto 25519 library was
wrapping it.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: rand.Read never errors</title>
<updated>2026-09-22T10:48:23Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-09-22T10:48:21Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=4a47e2142ffd031b44055f1a2b683cf7ebd3446d'/>
<id>urn:sha1:4a47e2142ffd031b44055f1a2b683cf7ebd3446d</id>
<content type='text'>
Part of the API contract, apparently.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>embeddable-dll-service: csharp: fix allowed IP layout</title>
<updated>2026-09-20T11:54:54Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-09-19T14:34:13Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=447360b078d82ebbd8a63fd9da68a400a5df42bf'/>
<id>urn:sha1:447360b078d82ebbd8a63fd9da68a400a5df42bf</id>
<content type='text'>
The CIDR byte follows the 16-byte address and two-byte address family,
placing it at offset 18. Add the missing flags field at offset 20 and
its Remove flag to match the native structure.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: raise min windows version to 10</title>
<updated>2026-03-21T11:23:55Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-03-18T23:18:06Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=ad0df6df37b4ecb7957cddd2ba01e1efcc39d538'/>
<id>urn:sha1:ad0df6df37b4ecb7957cddd2ba01e1efcc39d538</id>
<content type='text'>
Since we're also bumping the PE subsystem header to 10.0, this means we
need a _load_config with the proper flags. So there's some work to be
done here.

This also means bumping LLVM and Go builds. In the case of Go, the patch
is still pending: https://go-review.googlesource.com/c/go/+/756680 , so
it's a custom build.

Remove lots of compatibility code and hacks. Also update the installer
to display a useful message.

Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>global: bump date</title>
<updated>2026-03-18T22:45:25Z</updated>
<author>
<name>Jason A. Donenfeld</name>
<email>Jason@zx2c4.com</email>
</author>
<published>2026-03-18T22:44:38Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=ce901fde0aa8a7b0c1e48f78f8f4323f3ba8ad27'/>
<id>urn:sha1:ce901fde0aa8a7b0c1e48f78f8f4323f3ba8ad27</id>
<content type='text'>
Signed-off-by: Jason A. Donenfeld &lt;Jason@zx2c4.com&gt;
</content>
</entry>
<entry>
<title>build: make code signing method configurable</title>
<updated>2024-10-17T12:27:00Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2024-10-17T12:27:00Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=b279eab97a46bf8382b956b087b6922f88f95f20'/>
<id>urn:sha1:b279eab97a46bf8382b956b087b6922f88f95f20</id>
<content type='text'>
Existing code signing was hard-coded to use a locally installed
certificate (hardware security dongles included). However, signtool.exe
is extensible to allow any kind of digest signing plugin with /dlib and
/dmdf switches. This is used for cloud-based code signing (e.g.
Microsoft Trusted Signing).

Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>embeddable-dll-service: build: .gitignore outputs</title>
<updated>2022-03-28T11:19:14Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2022-03-28T11:19:14Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=004c22c5647e5c492daf21d0310cbf575e4e3277'/>
<id>urn:sha1:004c22c5647e5c492daf21d0310cbf575e4e3277</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
<entry>
<title>embeddable-dll-service: build: integrate tunnel.dll signing</title>
<updated>2022-03-28T11:17:34Z</updated>
<author>
<name>Simon Rozman</name>
<email>simon@rozman.si</email>
</author>
<published>2022-03-28T11:17:34Z</published>
<link rel='alternate' type='text/html' href='https://git.zx2c4.com/wireguard-windows/commit/?id=8d980422a4362909ef0b01d1f4cf10be64906773'/>
<id>urn:sha1:8d980422a4362909ef0b01d1f4cf10be64906773</id>
<content type='text'>
Signed-off-by: Simon Rozman &lt;simon@rozman.si&gt;
</content>
</entry>
</feed>
