35,908 karma · joined Oct 4, 2007 (19y ago) · 17,871 submissions
I live in Cincinnati, Ohio with my wife and two daughters. Ohio is terrible. Don't move here. (Locals still want to be able to afford housing.)
Opinions posted here are entirely my own personal views and not official positions of ZeroTier or any other company or group, unless I explicitly say otherwise.
comment 7y ago · link · parent
A similar money induced blindness drives financial bubbles, Ponzi schemes, and dodgy corporate accounting. It's hard for people to see that something's wrong when they're being paid to be blind.
comment 7y ago · link · parent
In any case the mode I cooked up has after a few minor tweaks essentially converged with AES-(CMAC|PMAC)-SIV but with GMAC in the MAC slot and with an extra AES-ECB (AES as a 128-bit keyed hash) step after GMAC to make it into a proper PRF. If that's the case then it seems that the AES-SIV work and papers apply.
I was reading about AES-GCM-SIV and it's unfortunate that they decided to use a new MAC digest function called POLYVAL instead of GHASH/GMAC. If they'd re-used GHASH/GMAC as-is it's possible that AES-GCM-SIV could be described in terms of GMAC and AES-CTR and therefore could pass FIPS. I guess nobody but people trying to sell to certain parties cares about FIPS, which is probably as it should be because FIPS sucks.
https://tools.ietf.org/html/rfc8452#page-17
Edit: it looks like POLYVAL is GHASH optimized for little-endian machines, so I see the rationale. Still too bad. They missed a bureaucracy-hacking opportunity.
comment 7y ago · link · parent
Economic systems are feedback loops. If something is the best investment that causes it to become a bad investment in proportion to how rapidly people realize it's a good investment.
comment 7y ago · link · parent
That's what I'm interested in, yes, though making the nonce bigger is also on the table. Ideally I'd like to do both.
> If you're trying to do cryptography on systems with no functioning random number generator, my presumption is you have bigger problems than which AEAD you're using.
We aren't really trying to do that, but our stuff runs on a ton of devices and we want to maximize its robustness across that device population. If someone puts it on a device with a crappy random source their security will be impacted but we wouldn't mind minimizing that impact if possible.
> * FIPS is bad, and a requirement to be FIPS-compliant will ultimately harm the security of a cryptosystem.
I agree that FIPS sucks. Bureaucratic requirements arounds security suck in general since they perpetuate a box-checking CYA mentality while hamstringing real security measures.
Unfortunately money doesn't suck and bureaucratic organizations control most of the money on this planet. Reality is what it is.
> You will better answers on Crypto Stack Exchange than on HN, though.
Agreed. I didn't post this here, someone else did. Crypto Stack Exchange is very good in my experience. It seems to have taken over the niche from the old Usenet crypto groups.
BTW I also do like WireGuard and if ZeroTier were redesigned today we'd consider the Noise framework it's based upon. None of that stuff existed when the design was originally made. As it stands we have a large user-base so backward compatibility matters and our goals and constraints are a little different from WG but we would like to evolve toward better crypto that is closer to what Noise accomplishes.
comment 7y ago · link · parent
Previous PCs came from chips and designs that were originally built to power terminals for mainframes like the Intel 4004/8008, the 6502, and the Z80. Today's handheld dumb terminals for mainframes are built with ARM64 chips that are approaching "desktop" performance levels just like those old dumb term chips started to approach useful performance levels before someone realized you didn't need the mainframe anymore.
... and so the wheel turns.
I think the biggest current barrier to de-cloudification of mobile devices is the heavily and cryptographically locked down OS. That's a software thing, not a hardware thing.
comment 7y ago · link · parent
Why? I agree that a larger nonce would be better and that's possible, but even with a larger nonce not having sudden total compromise of authentication on nonce duplication would be a good thing would it not?
Even with larger nonces/IVs nonce reuse can still be an issue. If you store your counter/seed, storage can be corrupted. If you store your counter/seed, your VM can be cloned creating an exact copy of your counter/seed. If you rely on system entropy you can have entropy issues. The latter is fairly common on small and embedded devices including a ton of ARM boards that are on the market. I have actually seen cheapo ARM boards that ship with kernels where /dev/urandom outputs the same bits at boot every time. I imagine it's a combination of disabling every ad-hoc entropy source option in the kernel parameters (because code size!) combined with no non-volatile clock and no hardware entropy source and a very deterministic single in-order core.
Sudden death properties are a footgun and I'm a little surprised that constructions with this property have become the standard. Increasing the size of the nonce/IV just makes the footgun's trigger less squirrely.
This post (I'm the author) is just research notes posted for feedback, not a final design that is shipping. (I edited the post and added a disclaimer just in case people get confused about that.) My goals are four-fold: (1) to avoid sudden death properties entirely, (2) to be fast (on modern hardware with AES acceleration, which pretty much all targets where performance matters), (3) to be potentially FIPS-certifiable if I plug in FIPS libraries/modules for my primitives, and (4) to avoid adding more packet overhead if possible. My thought is that if (1) is achievable then (4) is also achievable.
<rant>
I really find the fear-mongering around crypto to be counterproductive. This post is just an idea, and the problem it is attempting to address is a real one. No, I don't like FIPS either, but I do like making money and numerous large clients do require it. So why not research ways to be FIPS compliant and be better than the average FIPS-compliant (stock AES-GCM with sudden death footgun) implementation? Why is that goal alarming?
Every time I discuss crypto I get people who just chime in with "don't write crypto, just use standard stuff." (I do agree that it's best to use standard stuff if it meets all your goals, that's not the point.)
What does saying that actually accomplish?
The people who really shouldn't write crypto will ignore it because they think they know more than they really know (or their boss is telling them to). The people who should write crypto will ignore it because it doesn't apply to them. The only people who will follow those kinds of admonitions are the people who don't know crypto and know they don't know but want to learn, and they'll be discouraged from doing so.
I learned about crypto because I realized it was hard, ignored this kind of advice, and read and listened to people who did understand it. When I ask questions about crypto or post ideas for feedback I've learned to only pay attention to replies that contain specific information or point out actual specific issues or flaws in a design. I ignore hand-wavey fear mongering that contains no actual content, and I'd encourage others who are interested in learning about crypto or anything else to do the same.
</rant>
comment 7y ago · link · parent
Edit: plan is to re-key often enough than plain GCM with 64-bit tags would be "fine" from a FIPS point of view. The goal here is to do better than the FIPS requirement by closing a potential attack vector.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
BTW it's not just obtaining the oil but refining it. Oil refineries use a ton of power usually from electricity, gas, or by burning some of the oil itself. Heavier oil like tar sands and shale takes more energy to refine, as does high sulfur oil.
Tar sands is so bad I've heard it described as being almost more a way of very indirectly converting other sources of energy into oil than a source of energy.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
Disinformation works on the same principle as radar chaff. When something is trying to see you you blow out a bunch of shiny tinsel and nobody can tell signal from noise.
You can't keep secrets but you can definitely drown the truth. Online conspiracy nuts and other useful idiots are happy to help out by adding their own amateur BS to the noise screen.
comment 7y ago · link · parent
That is exactly my opinion too. Systemd managed to replace the nasty cruft pile that was SysV init with something even less transparent, more confusing, clunkier to use, and with a steeper learning curve to do simple things like add or change a system service.
There is too much to list, but let's start with the beginning: why name one of the most commonly used commands (for admins) on the system 'systemctl', which is even harder to type fast than 'service'?
That kind of total disregard for UX pervades the whole design. Its like no thought was paid to it at all. Everything is obtuse and clunky with long non-memorable names that give you carpal tunnel syndrome to type.
I loathe stuff like that.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
Overall if you don't need really long range a used Leaf is a great deal. You can get them in virtually mint condition for under $10k. Just be sure to research and check out battery health. There's an Android app called LeafSpy that will use a Bluetooth ODBII dongle (these are cheap) and can query lots of detailed battery info so you can check out battery health after buying. Mine was about average in terms of capacity loss for its age and it gets around 70 miles per charge without issue.
Also note that the Leaf's mileage estimate tends to be a little pessimistic, at least in my experience. My guess is that it's designed this way to avoid stranding the driver. Gas cars are often a little pessimistic too for the same reason. They give you a bit of a reserve.