aboutsummaryrefslogtreecommitdiff
path: root/pyasn1_modules/rfc2437.py
diff options
context:
space:
mode:
authorIlya Etingof <etingof@gmail.com>2016-03-27 23:45:18 +0200
committerIlya Etingof <etingof@gmail.com>2016-03-27 23:45:18 +0200
commit2a5c89cd9890d34a77e8d9e2d715cf6bbef7bbd1 (patch)
tree4618d152b7cb1dc854844d26ba9955bf19bb9573 /pyasn1_modules/rfc2437.py
parentbc17ad0b90ec51a01b306a88e48fc22a7befb895 (diff)
downloadpyasn1-modules-2a5c89cd9890d34a77e8d9e2d715cf6bbef7bbd1.tar.gz
pep8 reformatted
Diffstat (limited to 'pyasn1_modules/rfc2437.py')
-rw-r--r--pyasn1_modules/rfc2437.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/pyasn1_modules/rfc2437.py b/pyasn1_modules/rfc2437.py
index c28834d..33b5e50 100644
--- a/pyasn1_modules/rfc2437.py
+++ b/pyasn1_modules/rfc2437.py
@@ -11,7 +11,7 @@
#
# Sample captures could be obtained with "openssl genrsa" command
#
-from pyasn1.type import tag, namedtype, namedval, univ, constraint
+from pyasn1.type import tag, namedtype, univ
from pyasn1_modules.rfc2459 import AlgorithmIdentifier
pkcs_1 = univ.ObjectIdentifier('1.2.840.113549.1.1')
@@ -28,7 +28,10 @@ id_sha1 = univ.ObjectIdentifier('1.3.14.3.2.26')
MAX = 16
-class Version(univ.Integer): pass
+
+class Version(univ.Integer):
+ pass
+
class RSAPrivateKey(univ.Sequence):
componentType = namedtype.NamedTypes(
@@ -43,16 +46,21 @@ class RSAPrivateKey(univ.Sequence):
namedtype.NamedType('coefficient', univ.Integer())
)
+
class RSAPublicKey(univ.Sequence):
componentType = namedtype.NamedTypes(
namedtype.NamedType('modulus', univ.Integer()),
namedtype.NamedType('publicExponent', univ.Integer())
)
+
# XXX defaults not set
class RSAES_OAEP_params(univ.Sequence):
componentType = namedtype.NamedTypes(
- namedtype.NamedType('hashFunc', AlgorithmIdentifier().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
- namedtype.NamedType('maskGenFunc', AlgorithmIdentifier().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 1))),
- namedtype.NamedType('pSourceFunc', AlgorithmIdentifier().subtype(implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 2)))
+ namedtype.NamedType('hashFunc', AlgorithmIdentifier().subtype(
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))),
+ namedtype.NamedType('maskGenFunc', AlgorithmIdentifier().subtype(
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 1))),
+ namedtype.NamedType('pSourceFunc', AlgorithmIdentifier().subtype(
+ implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 2)))
)