diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2023-03-01 16:25:59 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-03-01 18:08:57 +0100 |
commit | 913904754ddd585d93522bc45e8d9e830d278f9a (patch) | |
tree | 14e20277ddcdde82806e55586ef8748a5af27d90 /openpgp/examples | |
parent | ea5606fd9cd2096301e7e4b690f9998d6a36bff9 (diff) |
openpgp: Add support for brainpoolP384r1.
- One of the brainpool curves was not included in our enum Curve,
because at the time we implemented ECC support, it wasn't part of
the RFC4880bis document.
- Unfortunately, we failed to mark enum Curve as non-exhaustive, so
we cannot add a variant without breaking the API.
- We can, however, support the curve by matching on its OID.
Diffstat (limited to 'openpgp/examples')
-rw-r--r-- | openpgp/examples/supported-algorithms.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/openpgp/examples/supported-algorithms.rs b/openpgp/examples/supported-algorithms.rs index 570cdc96..760da1f4 100644 --- a/openpgp/examples/supported-algorithms.rs +++ b/openpgp/examples/supported-algorithms.rs @@ -39,6 +39,7 @@ fn main() { Curve::NistP384, Curve::NistP521, Curve::BrainpoolP256, + Curve::Unknown([0x2B, 0x24, 0x03, 0x03, 0x02, 0x08, 0x01, 0x01, 0x0B].into()), // XXX Curve::BrainpoolP512, Curve::Ed25519, Curve::Cv25519, |