Doing ECDH is a bit complicated right now. We should provide an API aligned with the X25519 function from the RFC7748
Description
Description
Revisions and Commits
Revisions and Commits
Status | Assigned | Task | ||
---|---|---|---|---|
Resolved | • gniibe | T4293 Add dedicated X25519 function to Libcgrypt | ||
Resolved | • werner | T4294 Release Libgcrypt 1.9.0 |
Event Timeline
Comment Actions
Perhaps, returning allocated memory is not good. Filling the buffer for output would be better.
Comment Actions
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.
Comment Actions
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).
Comment Actions
gcry_ecc_get_algo_keylen has been added with commit a658c9ccc2c741f40b0b5cdbcd184cfb9a841d17 but documentation is missing.