Nitrokey / opcard-rs

OpenPGP card implementation
49 stars 1 forks source link

Opensc curve25519 compatibility #147

Open sosthene-nitrokey opened 1 year ago

sosthene-nitrokey commented 1 year ago
pkcs11-tool --login --login-type so --keypairgen  --key-type EC:prime256v1

Works, but

pkcs11-tool --login --login-type so --keypairgen  --key-type EC:edwards25519

doesn't with error: Generate EC key mechanism 1055 not supported'

and neither does

pkcs11-tool --login --login-type so --keypairgen  --key-type EC:curve25519

with error: error: Generate EC key mechanism 1056 not supported

sosthene-nitrokey commented 1 year ago

Relevant previous issue with RSA: https://github.com/Nitrokey/opcard-rs/pull/96

sosthene-nitrokey commented 1 year ago

Note: openpgp-tool does not support generating any type of EC keys, so this is why this works with pkcs11-tool