From 95af1e391b7155ebffd962b58f0a2b213af33ec3 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Wed, 31 Oct 2018 09:23:29 +0800 Subject: add EC OIDs (#4435) * add EC OIDs * move ec oid docs to bottom --- src/cryptography/hazmat/primitives/asymmetric/ec.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src') diff --git a/src/cryptography/hazmat/primitives/asymmetric/ec.py b/src/cryptography/hazmat/primitives/asymmetric/ec.py index e2e55e9e..431ecb79 100644 --- a/src/cryptography/hazmat/primitives/asymmetric/ec.py +++ b/src/cryptography/hazmat/primitives/asymmetric/ec.py @@ -9,6 +9,16 @@ import abc import six from cryptography import utils +from cryptography.hazmat._oid import ObjectIdentifier + + +class EllipticCurveOID(object): + SECP192R1 = ObjectIdentifier("1.2.840.10045.3.1.1") + SECP224R1 = ObjectIdentifier("1.3.132.0.33") + SECP256K1 = ObjectIdentifier("1.3.132.0.10") + SECP256R1 = ObjectIdentifier("1.2.840.10045.3.1.7") + SECP384R1 = ObjectIdentifier("1.3.132.0.34") + SECP521R1 = ObjectIdentifier("1.3.132.0.35") @six.add_metaclass(abc.ABCMeta) -- cgit v1.2.3