Page MenuHome GnuPG

Add dedicated X25519 function to Libcgrypt
Closed, ResolvedPublic

Description

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

Event Timeline

werner renamed this task from Add dedicated X25519 fucntion to Libcgrypt to Add dedicated X25519 function to Libcgrypt .Dec 17 2018, 10:06 AM
werner created this task.

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.Jun 25 2019, 5:46 AM
werner changed the task status from Testing to Open.Jan 7 2021, 10:58 AM

gcry_ecc_get_algo_keylen has been added with commit a658c9ccc2c741f40b0b5cdbcd184cfb9a841d17 but documentation is missing.