Re: Adding new public key KEM API

2023-11-23 Thread NIIBE Yutaka
Hello, NIIBE Yutaka wrote: > I encounter this exact issue when I did an experiment for DHKEM(X25519, > HKDF-SHA256). Currently, it computes public key from secret key. > > My experiment is here: > > https://dev.gnupg.org/source/libgcrypt/history/gniibe%252Fkem2/ > > This is the branch on top

Re: Adding new public key KEM API

2023-11-21 Thread Daniel Kahn Gillmor via Gcrypt-devel
On Mon 2023-11-20 09:28:49 +0100, Simon Josefsson via Gcrypt-devel wrote: > One common solution to that problem is to include the public key in the > data array holding the private key. The SNTRUP761 implementations I've > worked with does that by default, and I thought it was a fairly common > de

Re: Adding new public key KEM API

2023-11-20 Thread Simon Josefsson via Gcrypt-devel
One common solution to that problem is to include the public key in the data array holding the private key. The SNTRUP761 implementations I've worked with does that by default, and I thought it was a fairly common design pattern. /Simon Falko Strenzke writes: > There is another point to consid

Re: Adding new public key KEM API

2023-11-16 Thread NIIBE Yutaka
Hello, Falko Strenzke wrote: > There is another point to consider for the design of a generic KEM API: > the use of the public in the key derivation, which makes it necessary to > pass the public key to the decapsulation function if one doesn't want to > run the computation of the public key f

Re: Adding new public key KEM API

2023-11-14 Thread Falko Strenzke
There is another point to consider for the design of a generic KEM API: the use of the public in the key derivation, which makes it necessary to pass the public key to the decapsulation function if one doesn't want to run the computation of the public key from the private key in the decapsulati