Better HN
topnewbestaskshowjobs
Log inSign up

zx2c4

7,652 karma · joined May 22, 2011 (15y ago) · 767 submissions

zx2c4 [1] is Jason A. Donenfeld. President and Security Researcher at Edge Security LLC [2]. Maintainer of WireGuard [3], pass [4], and cgit [5]. Linux kernel developer [6]. Many other projects [7]. Email jason at <username> dot com.

[1] https://www.zx2c4.com/ [2] https://www.edgesecurity.com/ [3] https://www.wireguard.com/ [4] https://www.passwordstore.org/ [5] https://git.zx2c4.com/cgit/about/ [6] https://git.kernel.org/pub/scm/linux/kernel/git/zx2c4/linux.git/ [7] https://git.zx2c4.com/

Submissions

1.

Reaper Ported to Wayland(forum.cockos.com ↗)

2 points · by zx2c4 · 1w ago · discuss

2.

KWin-Type Introduced to Address KDE Wayland Usability Gap for Auto-Typing Text(phoronix.com ↗)

2 points · by zx2c4 · 4w ago · discuss

3.

EDG C++ Compiler is open source(github.com ↗)

26 points · by zx2c4 · 1mo ago · 1 comment

4.

Golang: Crypto/fips140: do not bloat crypto code unnecessarily(github.com ↗)

19 points · by zx2c4 · 1mo ago · 8 comments

5.

WireGuard for Windows Reaches v1.0(lists.zx2c4.com ↗)

146 points · by zx2c4 · 7mo ago · 9 comments

comment 7mo ago · link · parent

It's associated per-peer, so it assures a cryptographic mapping between src ip and public key.

comment 7mo ago · link · parent

It's like a routing table on the way out and an ACL on the way in. Maybe an easier way to think of it.

comment 7mo ago · link · parent

I likewise wonder from time to time whether I should replace WireGuard's allowedips.c trie with something better: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

comment 7mo ago · link · parent

Thank you! I'm glad somebody appreciates it. A lot of thought has gone into the installer and upgrade aspect.

10.

Version 1.0 Released: WireGuard for Windows and WireGuardNT(lore.kernel.org ↗)

22 points · by zx2c4 · 7mo ago · 2 comments

11.

Version 1.0 of WireGuard for Windows and WireGuardNT Released(lists.zx2c4.com ↗)

6 points · by zx2c4 · 7mo ago · discuss

comment 7mo ago · link · parent

Good question! I've never tried. The NT driver makes use of some of the more advanced features of the networking stack, so possibly not. But you never know. I'd love a Wg4React.

comment 7mo ago · link · parent

This was just for WireGuardNT, the kernel driver for the NT kernel that Windows uses.

This project -- https://git.zx2c4.com/wireguard-nt/about/ -- is used by this app -- https://git.zx2c4.com/wireguard-windows/about/ . The former is what the signing situation was about. The latter is just signed using a normal boring (but very expensive!) EV code signing certificate from one of the CAs.

comment 7mo ago · link · parent

As I mentioned in the mailing list post, the Microsoft paperwork shuffling matter got dealt with rather quickly, following all the attention the HN thread from the other day got. And now we're finally out with an update!

NT programming is a lot of fun, though this release was quite challenging, because of all of the toolchain updates. On the plus side, we got to remove pre-Win10 support -- https://lists.zx2c4.com/pipermail/wireguard/2026-March/00954... . But did you know that Microsoft removed support for compiling x86 drivers in their latest driver SDK? So that was interesting to work around. There was also a fun change to the Go runtime included in this release: https://github.com/golang/go/commit/341b5e2c0261cc059b157f1c...

All and all, a fun release, and I'm happy to have the Windows release train cooking again.

15.

WireGuard makes new Windows release following Microsoft signing resolution(lists.zx2c4.com ↗)

549 points · by zx2c4 · 7mo ago · 166 comments

comment 7mo ago · link · parent

Microsoft got in touch. All sorted out now.

comment 7mo ago · link · parent

Hopefully soon, Microsoft-willing.

comment 7mo ago · link · parent

No. The humans just said 60 days.

comment 7mo ago · link · parent

Encouraged by this thread, I tweeted about it: https://x.com/EdgeSecurity/status/2041872931576299888

comment 7mo ago · link · parent

This is the same problem I'm currently facing with WireGuard. No warning at all, no notification. One day I sign in to publish an update, and yikes, account suspended. Currently undergoing some sort of 60 days appeals process, but who knows. That's kind of crazy: what if there were some critical RCE in WireGuard, being exploited in the wild, and I needed to update users immediately? (That's just hypothetical; don't freak out!) In that case, Microsoft would have my hands entirely tied.

If anybody within Microsoft is able to do something, please contact me -- jason at zx2c4 dot com.

21.

WireGuard to only support Windows 10 and up(lists.zx2c4.com ↗)

3 points · by zx2c4 · 8mo ago · discuss

comment 11mo ago · link · parent

Voila:

https://github.com/WireGuard/wireguard-android/pull/82 https://github.com/WireGuard/wireguard-android/pull/80

In that first one, the double pasted AI retort in the last comment is pretty wild. In both of these, look at the actual "files changed" tab for the wtf.

comment 1y ago · link · parent

On Linux, there's no need to use this. Modern Linux kernels implement getrandom() in the vDSO, which does similar buffering, and keeps those buffers safe in the event of forks or VM forks and kernel reseed events.

The readme says:

> Maintains all cryptographic security guarantees of crypto/rand

I'm not sure that's correct. If you're running this in a VM that forks, this new package will give out the same random bytes to both VMs, which could be catastrophic. If you're using normal crypto/rand, Linux has got you covered, and the VM forks get reseeded.

comment 1y ago · link · parent

I was curious upon seeing this and found the thread where its inclusion was turned down: https://sourceforge.net/p/sevenzip/discussion/45797/thread/a...

comment 1y ago · link · parent

> about 4x to 10x faster than channels.

I'd be interested to learn why/how and what the underlying structural differences are that make this possible.

comment 1y ago · link · parent

Similar project of mine from a long while ago: https://git.zx2c4.com/cscript/about/

comment 1y ago · link · parent

Linus merged it on July 24, 2024, so about a year I guess. Kernel is released ~8 weeks after the merge window, so I suppose September or so.

I think neither are unbelievably slow. I dunno, take some measurements and see, maybe it suits you.

comment 1y ago · link · parent

If you don't need "predictable randomness", like for repeatable statistical simulations, then absolutely, you should only use getrandom(). On recent Linux, this is implemented in the vDSO and is super fast. Few excuses now to use anything different.

comment 1y ago · link · parent

Careful with the "chacha csprng" when the seed from the seed() function appears to be 32 or 64 bits. That's not enough for the cs part. (Also the output stream appears to wrap after 2**32 blocks. Could make this larger.)
12345
26