Minisign 2 Is Here

Hacker News by 6 min read 17x views
Minisign 2 Is Here

Share Post

The archetypal type of Minisign was released in 2015, nearly 12 years ago.

Like a lot of projects, Minisign was delivered out of individual frustration. I needed a way to sign application and records (originally for dnscrypt-proxy), and PGP was the lone viable choice at the time.

But using PGP was painful. Even for average operations, I had to Google how to use it. PGP had everything but the galley sink, and it was a complex mess.

I designed Minisign to be minimal: a small specification that’s uncomplicated to implement, a uncomplicated command-line interface, and small community keys that are uncomplicated to copy and paste.

There are no algorithms or parameters to choose from: Minisign uses contemporary cryptography and safe parameters, unconditionally.

Minisign started as a reimplementation of OpenBSD’s signify tool, but it filled an crucial gap: it let you nexus signed, human-readable data to the payload: the “trusted comments”.

Trusted comments were designed to forestall downgrade attacks. An old type can motionless have a valid signature equal if it contains vulnerabilities that have since been fixed. But alongside an unforgeable timestamp or type figure border to the signature, you can inform that the document is older than the type you expect.

Minisign has caught on, and group have reimplemented it in multiple programming languages. It’s used to sign Zig releases, DNS server lists, Wasmer applications, and more.

It’s uncomplicated to execute and uncomplicated to use, and it fair works.

Minisign uses Ed25519 for signatures. It has small community keys (32 bytes), is fairly fast, and is extensively available.

And Ed25519 has served us well. To this day, there are no proofs of a applicable assault against it whenever it’s implemented and used correctly.

In latest years, though, there’s been expanding involvement concerning quantum computers ample adequate to interrupt elliptic-curve cryptography. No one really knows whether we’ll see one in the life of the planet.

Even alongside that uncertainty, Minisign would eventually need to assistance post-quantum signatures. The difficulty is that there’s no drop-in post-quantum replacement for Ed25519.

Many post-quantum signature schemes have been developed complete the former few years, but most have ample community keys or ample signatures, or they’re slow. And several have turned out to be insecure equal against traditional computers.

These schemes keep improving, but all comes alongside its own trade-offs.

AI is additionally speeding up the inspection of these schemes. An unexpected outcome could display that they recommendation much small safety than we thought.

Minisign signatures should remain valid and safe for the lengthy term.

For the former few years, I’ve been following this activity closely, looking for a fine post-quantum choice for the next important type of Minisign.

Schemes according to isogenies are particularly promising, but they are motionless a activity in progress. The many variants of SQISign are too promising to disregard but motionless too scholarly to commit to.

Today, FAEST would be an nearly ideal candidate. It has small keys and signatures, and relies lone on well-known symmetric primitives.

But it’s difficult to commit to item that NIST hasn’t standardized yet. Standardized constructions lag rearward the province of the art, but at smallest their details are improbable to change.

I really desire I could use FAEST. But if Minisign adopted it today, a last-minute tweak to FAEST would depart us alongside a tradition signature scheme.

For an inner scheme anywhere updating the algorithm would be painless, I’d certainly propose FAEST, particularly following August 2027, whenever NIST volition no longer obtain tweaks.

For Minisign, though, that doesn’t audio akin a fine idea: type 2 needs a stable, long-term format.

My first scheme was to delay for the powder to resolve and see which additional signature schemes NIST would choose and which ones applications would really adopt.

Despite cryptographers’ recommendations and compliance requirements, the huge bulk of companies put off migrating to post-quantum systems for as lengthy as possible. They fair didn’t attention unless a ample client explicitly asked for it.

But the NSA’s latest notice came as a astonishment and changed everything: as shortly as it came out, companies wanted to deploy post-quantum cryptography worldwide overnight.

So, notwithstanding the deficiency of ideal options, it was period to publish Minisign 2. The scheme had been prepared for years, but I motionless hadn’t settled on a signature algorithm.

With additional time, I power have chosen a distinct algorithm, but postponing a post-quantum type of Minisign would have been irresponsible.

As I compose this, I have no idea whether AI has really produced a breakthrough in elliptic-curve cryptography that could guide to a applicable assault against Ed25519. But improved harmless than sorry.

So Minisign 2 is accessible today alongside assistance for SLH-DSA signatures.

SLH-DSA, earlier known as SPHINCS+, is a traditional hash-based scheme. No known quantum algorithm can interrupt it additional efficiently than a traditional algorithm can, and it’s apt to clasp up extremely fine against AI, too.

SLH-DSA additionally has small community keys, which is extremely crucial for Minisign. At the 128-bit safety level, they’re fair 32 bytes, the identical size as today’s Ed25519 community keys.

Another logic it’s a fine fit for Minisign is that an SLH-DSA implementation can be uncomplicated and compact, alongside small ways to get it incorrect than most another schemes.

SLH-DSA, as standardized by NIST, is far from perfect, though. It’s not extremely fast, and the fact that the norm allows lone SHA2 and SHAKE as hash functions doesn’t help.

But Minisign is typically used for application updates, so the additional disbursal of using SLH-DSA alternatively of Ed25519 is negligible in practice.

Minisign 2 was designed as a simple, incremental update to Minisign 1.

If you already have a Minisign 1 implementation, you don’t need to commencement complete to assistance Minisign 2. In fact, if there’s already an SLH-DSA implementation in your favorite programming language, the changes volition be uncomplicated and minimal.

And if you’re starting from scratch, an implementation that supports lone Minisign 2 volition be smaller than a Minisign 1 implementation since it needs small components.

From a user’s perspective, Minisign 2 volition appearance familiar. Signatures and keys use the identical format as before, but they say “minisign2” alternatively of “minisign”. CLIs and libraries don’t need to alter their interfaces much either.

If your implementation supports the two algorithms, I propose using distinct default filenames: minisign2.key and minisign2.pub for an SLH-DSA key pair, and the .minisig2 suffix for signatures.

Minisign 2 is accessible today in Minizign, in the original Minisign implementation and in the go-minisign package. Other implementations volition follow.

Other Article Hacker News
↑
Close Right Ads
Close Left Ads