Oriel — AI & technology worth noticing, every day.

Please stop hashing the public key first (or: ML-DSA's µ annoys me)

Web page · https://blog.erincandescent.net/2026/10/mu-annoys-me

First seen by Oriel on .

AI summary

The article argues that hashing public keys before messages complicates streaming verification and repeated key trials, especially in ML-DSA, while Ed25519's alternative ordering creates length-extension risks.

  • Traditional signature protocols can hash messages before identifying signing keys, allowing raw messages to be discarded and avoiding repeated hashing during trial verification.
  • ML-DSA hashes SHAKE-256(PubK, 64) before the context and message, preventing straightforward reuse of a SHAKE-256 state across candidate keys.
  • Placing the public-key hash after the message would retain just over 200 bytes of SHAKE-256 context instead of 64 bytes of output.
  • Ed25519 places R and PubK after the message inside SHA-512, while reversing that order would expose the construction to length-extension attacks.
  • The author recommends reducing signature counts and notes that modern non-length-extension-resistant hash functions could avoid Ed25519's ordering problem in a redesigned scheme.

#ml-dsa #ed25519 #digital signatures #hash functions

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Lobstersxatiajhttps://blog.erincandescent.net/2026/10/mu-annoys-me/ Read discussion