LedgerHQ / app-ssh-agent

Simple SSH and GPG agent for Ledger Blue and Nano S
Apache License 2.0
78 stars 27 forks source link

Nano S Can't Generate ECDH Secret with ED25519 #33

Open Xelynega opened 2 years ago

Xelynega commented 2 years ago

When trying to use the INS_GET_ECDH_SECRET apdu, the results are as expected when supplying an secp256k1 public key and P2 is set to P2_PRIME256. If an ed25519 public key is used instead, or if P2 is set to P2_CURVE25519, my ledger nano S freezes on the "PGP Agent ECHD?" menu. Is this a firmware limitation, or an issue with the current implementation of ins_get_ecdh_secret?