Add dedicated X25519 function to Libcgrypt
Testing, HighPublic

Description

Doing ECDH is a bit complicated right now. We should provide an API aligned with the X25519 function from the RFC7748

werner created this task.Dec 17 2018, 10:06 AM
werner renamed this task from Add dedicated X25519 fucntion to Libcgrypt to Add dedicated X25519 function to Libcgrypt .
gniibe claimed this task.Jun 3 2019, 6:15 AM

Thanks for taking this one.

Shall we use secure buffer?

Perhaps, returning allocated memory is not good. Filling the buffer for output would be better.

Would it be good to have interface for getting buffer size for different algos in this new interface? ... Similar as 'gcry_md_get_algo_dlen' for digest results.

Thanks, that's a good point. I'm adding gcry_ecc_get_algo_keylen.
I also changing the API for output (not allocating a buffer, but filling the buffer provided).

gniibe changed the task status from Open to Testing.Tue, Jun 25, 5:46 AM