-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#221 - added curve classes for X25519/Ed25519 so that PGPy can suppor…
…t it as soon as people obtain builds of OpenSSL that include support for them
- Loading branch information
Showing
2 changed files
with
16 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,7 +20,7 @@ | |
|
|
||
| from .decorators import classproperty | ||
| from .types import FlagEnum | ||
| from ._curves import BrainpoolP256R1, BrainpoolP384R1, BrainpoolP512R1 | ||
| from ._curves import BrainpoolP256R1, BrainpoolP384R1, BrainpoolP512R1, X25519, Ed25519 | ||
|
|
||
| __all__ = ['Backend', | ||
| 'EllipticCurveOID', | ||
|
|
@@ -58,12 +58,12 @@ class EllipticCurveOID(Enum): | |
| #: | ||
| #: .. warning:: | ||
| #: This curve is not currently usable by PGPy | ||
| Curve25519 = ('1.3.6.1.4.1.3029.1.5.1', ) | ||
| Curve25519 = ('1.3.6.1.4.1.3029.1.5.1', X25519) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
Commod0re
Author
Contributor
|
||
| #: Twisted Edwards variant of Curve25519 | ||
| #: | ||
| #: .. warning:: | ||
| #: This curve is not currently usable by PGPy | ||
| Ed25519 = ('1.3.6.1.4.1.11591.15.1', ) | ||
| Ed25519 = ('1.3.6.1.4.1.11591.15.1', Ed25519) | ||
| #: NIST P-256, also known as SECG curve secp256r1 | ||
| NIST_P256 = ('1.2.840.10045.3.1.7', ec.SECP256R1) | ||
| #: NIST P-384, also known as SECG curve secp384r1 | ||
|
|
||
Why is here called Curve25519 and in the rest X25519?