cloudflare / circl

CIRCL: Cloudflare Interoperable Reusable Cryptographic Library
http://blog.cloudflare.com/introducing-circl
Other
1.3k stars 144 forks source link

dilithium: Derive a public key from the private key #504

Open aflox405 opened 3 months ago

aflox405 commented 3 months ago

I might be wrong here, but I believe it should be possible to derive a public key from an existing private key with dilithium. That would be nice as it would improve key handling a lot. "Loosing" the public key would not require generating a completely new key pair. As such, it would be helpful if there was a method like

mode.DerivePublicKey(pk *PrivateKey) (PublicKey, err)

to facilitate this.