bcgit / bc-java

Bouncy Castle Java Distribution (Mirror)
https://www.bouncycastle.org/java.html
MIT License
2.31k stars 1.14k forks source link

Feature: Support for rfc8418 use ECDH with X25519 and X448 in CMS #1845

Open danischroeter opened 1 month ago

danischroeter commented 1 month ago

https://datatracker.ietf.org/doc/rfc5753 Use of Elliptic Curve Cryptography (ECC) Algorithms in Cryptographic Message Syntax (CMS) is implemented in bouncycastle and there is a nice example here: https://github.com/bcgit/bc-java/blob/main/pkix/src/test/java/org/bouncycastle/cms/test/BcEnvelopedDataTest.java

rfc8418 would be similar to rfc5753 using newer curves X25519 and X448 see https://datatracker.ietf.org/doc/rfc8418/

Are there any plans to implement this in bc? There is a similar effort in openssl see https://github.com/openssl/openssl/issues/22388

danischroeter commented 1 month ago

seems related https://github.com/bcgit/bc-java/pull/1663