bc-csharp icon indicating copy to clipboard operation
bc-csharp copied to clipboard

Support for EdDSA in PGP C#

Open ofrir-cl opened this issue 3 years ago • 5 comments

Hello,

I am trying to decrypt a PGP message using a private key, but when using the function new PgpSecretKeyRingBundle(keyStream);

I am getting the exception: unknown PGP public key algorithm encountered

The private key has the algorithm as 0x16 (22) which should correspond to ed25519 Looks like a similar issue was fixed in the java version https://github.com/bcgit/bc-java/issues/636 so I am wondering if maybe it wasn't fixed in the C# one?

Thanks a lot in advance!

ofrir-cl avatar Jan 24 '22 12:01 ofrir-cl

It has not yet been added to the C# build, but is on the TODO list.

peterdettman avatar Jan 28 '22 06:01 peterdettman

The pull request #282 has worked for me. It also passes the corresponding Java tests (I've migrated them in https://github.com/fnajera-rac-de/bc-csharp/commit/f10df3af19ee74804399af39a1411628a05cde93).

fnajera-rac-de avatar Feb 04 '22 17:02 fnajera-rac-de

I am particularly interested in this feature. Any ETA on this? Is there something I can do to help? Thanks.

Indigo744 avatar Feb 28 '22 12:02 Indigo744

Hi @peterdettman, how this issue going on? I'm having same issue when try to encrypt with public key type Ed25519

mafia9874123 avatar Nov 04 '22 00:11 mafia9874123

I've now ported the OpenPGP EdDSA (and XDH) support from bc-java. It will be in the v2 NuGet release this week.

peterdettman avatar Nov 05 '22 12:11 peterdettman