-
-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ed25519 & ECC support #13
Comments
Do you have a PHP library for ECC that you're using? |
Yep, libsodium-php, but I want to make it so that people can export their keys in GnuPG format. |
You can use |
Any news about ECC support ? |
I need this feature too |
@sartor Then implement it and create a pr. |
Could anyone give some starting pointers what would be needed for this extension? In particular for adding the necessary import/export formats (“packet” in GPG speak?), when libsodium would be used for the heavy lifting parts? |
@singpolyma do you think you could give some starting pointers what needs to be done for this? |
I have put in the extensions needed for ECDH, ECDSA, and EdDSA key parsing, serialization, and fingerprint calculation 3b62407 |
Support for verifying Ed25519 signatures: fe63af6 |
sodium will not be able to support the full range of OpenPGP ECC options, since it is limited to 25519 curve, but it's a start |
😮 🕺🏼 Thank you @singpolyma! Now I will have to learn how to use it. My goal is writing a pure-PHP CLI that can be used by Git instead of a full GPG implementation, and just for signing. Maybe that can lower the barrier for PHP devs to start signing their Git commits. |
@mpdude As mentioned in #13 (comment) just use |
ECC keys were recently added to GnuPG, and various RFCs are open or accepted for it:
https://www.gnupg.org/faq/whats-new-in-2.1.html
https://www.ietf.org/id/draft-koch-eddsa-for-openpgp-03.txt
https://www.gnupg.org/documentation/manuals/gcrypt/ECC-key-parameters.html#ECC-key-parameters
https://tools.ietf.org/html/rfc6637
https://www.ietf.org/mail-archive/web/openpgp/current/msg07321.html
However, openpgp-php doesn't support ECC keys. I've been trying to add it myself, but it's quite difficult. I'm not sure what key fields I should use, for example.
Anyone have any ideas or want to take a crack at it? ECC keys are awesome and super useful.
The text was updated successfully, but these errors were encountered: