Better HN
topnewbestaskshowjobs
Log inSign up

api

35,908 karma · joined Oct 4, 2007 (19y ago) · 17,871 submissions

Founder of ZeroTier. Learned programming on a Commodore 64. Linux user since Slackware and kernel version 0.99.15. Been online too long and spent too long in front of a screen.

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.

Submissions

comment 7y ago · link · parent

When the money is flowing, people look the other way. It's how someone like Epstein (or Jimmy Saville in the UK for another example) can function for so long. They throw money around.

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

Your advice is good in most circumstances, and may end up being what we do.

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

If someone takes that as advice they shouldn't be writing crypto, which means they'll probably both ignore your better advice and screw it up in ways far worse than using a small IV. :)

comment 7y ago · link · parent

Wasn't the housing bubble driven in part by a form of passive investing, namely bundling mortgages (one of the "safest private investments")?

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

> 3. NMR systems where the nonce isn't necessarily large enough to safely use randomly, but the system doesn't fail catastrophically on the rare occasions they collide.

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

For now, but edge computing diminishes the role of the mainframe. This makes it easier to replace the mainframe. Eventually someone will do that.

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

> the logic used here is alarming.

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

Professional cryptographers will definitely look at it. Doing design research first.

comment 7y ago · link · parent

I'm not 100% sure either and am looking into it. FIPS is a rats nest and it may "depend." At this point I was just looking for basic feedback as to whether anyone could see any obvious problems. One person did suggest using a different AES key for each operation, which costs next to nothing and is probably good practice.

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

I'd rather not waste a cryptographer's time with something that contains flaws that Guy On SO can spot. I do know enough about cryptography to generally tell if Guy On SO seems to know what they're talking about or not.

comment 7y ago · link · parent

SIV-type schemes use the message content to guard against accidental message IV duplication, which can occur for numerous reasons including bad random sources, loss of storage, or just a smaller IV. They use the message content and message IV to generate a synthetic IV that is message-dependent so a duplicated message IV has no effect (other than revealing message duplication if the messages happen to also be the same).

comment 7y ago · link · parent

Yes that would happen. Blogging and fishing for public comments is round one.

comment 7y ago · link · parent

FIPS is a double-edged sword in my experience. On one hand it does set a standard to keep total snake oil crypto out of government. On the other hand it often has the side effect of mandating worse and older crypto and slowing update cycles when there's a bug. When SSL bugs are discovered vulnerable SSL libraries tend to sit around for a lot longer on FIPS-controlled hosts because they have to wait for a FIPS-validated update.

comment 7y ago · link · parent

It costs so much less to drive an EV per mile largely because we get electricity from sources with a much higher EROEI than present day oil. Gas, coal, solar, wind, nuclear, and hydro are all much better. The low energy return of current oil is priced in.

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

If oil demand falls a lot of tar sands and offshore and fracking and other hard to get oil will become uneconomical to extract, causing (paradoxically) supply to appear to contract too. The oil age could ratchet down via a series of price spikes and contractions just as it ratcheted up via price spikes and expansions.

comment 7y ago · link · parent

This is particularly the case when taxis are so painfully awful. Every time I ride one I vow "never again." Its always a horrible experience and costs 2X as much as anything else.

comment 7y ago · link · parent

The wheel of reincarnation is so called because it turns, and it will probably turn again. The new buzzword "edge computing" refers to the use of computers close to the user to do what was once done in "the cloud." Peer to peer is on the rise too, linking "edge" devices directly together. Voila, PC revolution 2.0 but with new terms. Soon we will reinvent the BBS, shareware, etc.

comment 7y ago · link · parent

No clue why this is downvoted. I would assume that at least for G7 and orher "first world" nation states.

comment 7y ago · link · parent

Assume all Internet connections are party lines and just encrypt all the things.

comment 7y ago · link · parent

Seems to me that the superpowers have already figured out how to neutralize the Internet: flood it with bullshit.

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

This happened to Intel with Athlon and Opteron back in the early 2000s. Intel came back swinging pretty fast. They might this time too. In any case the consumer wins. Intel needed a swift kick in the butt.

comment 7y ago · link · parent

> Hence it's pointless because it doesn't make things any simpler.

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

> And if it wont work, it is so complicated and non-transparent that you need a specialist.

Maybe that fits RedHat's business model.

comment 7y ago · link · parent

What Trump leaked about billion dollar spy satellites...

comment 7y ago · link · parent

This is semi off topic, but why (from a mainstream Chinese perspective) is China targeting Uyghur Muslims? Is there just a general ideology of enforced conformity or is this a special case?

comment 7y ago · link · parent

I must second George. His whole idea of taxing things humans do not produce instead of labor, etc. is remarkably rational.

Both Marxism and fascism have made a comeback in a big way. Neither offer any solutions that will lead anywhere other than dystopia.

comment 7y ago · link · parent

What if it's discrete but effectively matches what we know in that current mathematical methods correctly approximate it in their respective contexts and resolutions? I mean in the same sense that Newtonian physics approximates Einsteinian physics at low speeds and distances.

comment 7y ago · link · parent

There are companies working on aftermarket battery upgrades. There's one that has a module that lets you put a newer 40kWh battery in an old Leaf. Such batteries can be purchased from junked/totaled Leafs. There's another out there working on some kind of emulated battery module. Neither of these are quite ready yet but the market is there so I assume such upgrades are coming.

comment 7y ago · link · parent

We have an economy that reliably produces a crisis on average about every eight years. We are quite overdue.

comment 7y ago · link · parent

I recently got a used Leaf with about 70mi range for around $7000 (total cost including fees, tax, etc.). It's extremely low maintenance (no ICE at all) and while I haven't done math in this detail yet the "fuel" price even at California's higher electricity rates is less than half the cost of gasoline per mile driven. Once you factor in the relative lack of maintenance it's much cheaper to operate than an ICE.

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.

1
342343344
596