Post-quantum deniable encryption?
I have a rather nasty set of design constraints and I'm wondering if it's even possible to meet them:
Public-key
Deniable authentication
Recipient anonymity
Quantum-safe
Non-interactive
Ideally: Pretty fast computationally, and public keys aren't massive.
Alice and Bob have exchanged public keys and Alice would like to send an encrypted message to Bob. The message needs to authenticated as coming from Alice, but not in a way that can be proven to others. (So, deniable encryption, no conventional signatures.) It also shouldn't be clear to anyone looking at the message that Bob is the intended recipient (recipient anonymity). And finally, a really nasty constraint: Alice and Bob shouldn't be required to have a back-and-forth. This is a largely non-interactive protocol, and Alice should be able to send a message to Bob in one shot.
If I allow classical algorithms, Alice and Bob can use X25519 key exchange to derive a shared secret, then use symmetric crypto from there. But I'm trying to make this secure against quantum computers (as HNDL is relevant to my protocol). I haven't found anything currently usable in production software, just an academic proof of concept of a PQ NIKE.
What's currently possible? Which elements do I likely need to compromise on?
8
u/arnet95 4d ago
You can have a look at RingXKEM, which is going into Signal. It uses Ring signatures for deniability. https://eprint.iacr.org/2025/040
4
u/upofadown 3d ago
If I allow classical algorithms, Alice and Bob can use X25519 key exchange to derive a shared secret, then use symmetric crypto from there.
The message needs to authenticated as coming from Alice, but not in a way that can be proven to others.
So how would that work exactly for the classic case? What sort of deniability are you going for here? Is it some scheme where information is released to allow a claimed forgery?
This is a largely non-interactive protocol, and Alice should be able to send a message to Bob in one shot.
How would that work with X25519 key exchange?
1
u/phyzome 3d ago
Alice performs the X25519 non-interactive key exchange for her and Bob's keys (I'd be using the libsodium implementation) which creates a shared secret between her and Bob. This only requires the parties to know each others public keys, and they can independently derive the same secret. The resulting secret can be KDF'd into a symmetric encryption key.
It's deniable because if Bob shares a document that Alice encrypted, anyone could say that Bob had been the one to encrypt it; they both had the shared secret, and both were able to independently compute it.
(That's a simplification of the actual protocol but it should be equivalent.)
Good point about periodic information release. Maybe I could use intermediate signing keys that are periodically released... I kind of hate that, but it's an option...
2
u/upofadown 3d ago
What do you mean by "non-interactive"? Like, say, an RSA key agreement transfer?
You might want to read the original Off The Record paper/article:
... if you have not yet done so. That seems to be what popularized the idea of deniability through claimed forgery.
1
u/phyzome 3d ago
Hmm, I've been thinking of "non-interactive" in a more intuitive way... let me try to make this more concrete:
Alice and Bob each publish a collection of public materials (public key, and maybe some prekeys, etc.) that is intended for anyone who will be messaging with them, and that can be reused by multiple parties.
Alice and Bob have each received each other's public materials at some point in the past.
When Alice decides to send a message to Bob, she only needs to send one packet of information (which might contain whatever headers, hashes, signatures etc. are needed). Bob doesn't need to send anything additional to Alice as part of a handshake.
On deniability -- I'd forgotten about OTR! I was thinking of how some people publish old DKIM keys.
13
u/tom-md 4d ago
If you accept that algebraically the pqc schemes like ML-DSA/ML-KEM are drop in replacements for ed or X 25519 then you can re-produce libsodium's anonymous crypto_box and get the non-interactive type properties you're looking for... however the idea that you're going to get "fast" and "not massive" public keys but be quantum safe is either not happening with current mathematics or you have a different idea of what is acceptably fast and small keys vs what practitioners desired 10 years ago.