Skip to content

Commit

Permalink
Document legacy curve OIDs
Browse files Browse the repository at this point in the history
  • Loading branch information
vanitasvitae committed Nov 28, 2024
1 parent c0a8ee6 commit 8bbae05
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ public class CryptlibObjectIdentifiers

public static final ASN1ObjectIdentifier ecc = cryptlib.branch("1").branch("5");

/**
* Curve25519Legacy for use with ECDH.
* @see <a href="https://www.rfc-editor.org/rfc/rfc9580.html#ec-curves">
* RFC9580 - ECC Curves for OpenPGP</a>
*/
public static final ASN1ObjectIdentifier curvey25519 = ecc.branch("1");
}
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,11 @@ public interface GNUObjectIdentifiers
*/
ASN1ObjectIdentifier ellipticCurve = new ASN1ObjectIdentifier("1.3.6.1.4.1.11591.15");

/**
* Ed25519Legacy for use with EdDSALegacy.
*
* @see <a href="https://www.rfc-editor.org/rfc/rfc9580.html#ec-curves">
* RFC9580 - ECC Curves for OpenPGP</a>
*/
ASN1ObjectIdentifier Ed25519 = ellipticCurve.branch("1");
}

0 comments on commit 8bbae05

Please sign in to comment.