bcgit / bc-java

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

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

Open danischroeter opened 2 months ago

danischroeter commented 2 months 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 2 months ago

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