iqlusioninc / yubikey.rs

Pure Rust YubiKey host-side driver for PIV-based RSA/ECC key storage + signing/encryption support
BSD 2-Clause "Simplified" License
218 stars 27 forks source link

Add curve 25519 support #577

Open dlubawy opened 4 months ago

dlubawy commented 4 months ago

Yubico added support for curve 25519 in the PIV applet since firmware '5.7.X'. This support has already been added to yubico-piv-tool, but it is lacking in this Rust library. This PR is an attempt to keep the libraries aligned on functionality. Changes made are as described:

I'm open to any feedback. This is my first real go at production Rust code so criticism is welcome/needed for me to learn.

Additional items to maybe consider: