hn.today

Sanctum: "Swap the classical ECDH part of the exchange from x25519 to secp384r1"

github.com6 points1 comments
Screenshot of Sanctum: "Swap the classical ECDH part of the exchange from x25519 to secp384r1"

Sanctum changes the classical Diffie-Hellman component of its hybrid key exchange from X25519 to the secp384r1 elliptic curve. OpenSSL is now the default backend; MbedTLS is an alternative, and LibreSSL can substitute for OpenSSL. As a result, a standard build now needs OpenSSL as well as pkg-config and libsodium, unless a different asymmetry backend is selected at compile time. The code generalizes key and signature size definitions so alternate cryptographic backends can specify their own dimensions.

The exchange still combines ECDH with ML-KEM-1024: both peers create offers, exchange public keys and KEM data, and derive directional session keys from the resulting shared secrets and a derivative of their shared symmetric key, using KMAC256. The larger curve’s 96-byte public key is sent in four 32-byte fragments, while its private key and shared secret use 48 bytes. Documentation and protocol structures are updated to describe generic ECDH rather than X25519. Ed25519 remains the default signing mechanism for offers used in Cathedral communication; signatures are not part of ordinary key exchanges, and replacing Ed25519 is identified as a possible future change.

Read on github.com1 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

GL.iNet admits using reverse shells on routers during breach response

GL.iNet confirmed it used reverse-shell connections to customer routers during its response to a GoodCloud breach, including connections with root access that researchers had mistaken for attacker activity. The company apologized for failing to disclose the remediation earlier and said attackers exploited a messaging-service permission error. (bleepingcomputer.com)

Secret Elliptic Curveballs

Secret Elliptic Curveballs

Unspecified cryptographic discoveries have prompted an urgent push toward post-quantum security, while officials say they pose no immediate, widespread threat. Keeping the details secret has fueled panic and speculation, and raised concerns about government control of cryptographic research. (netmeister.org)

Cryptography rumors are getting more specific

Cryptography rumors are getting more specific

Rumors suggest a new algorithm reduces elliptic-curve cryptography’s security from half a key’s length in bits to one-third, while leaving RSA unaffected; 256-bit ECC would still be costly to attack but weaker than previously believed. If true, 384-bit curves such as P-384 would restore the expected 128-bit security, and Bitcoin holders with less than $10 million in assets are advised to take no action for now. (johndcook.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.