aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-15 11:01:46 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-04-20 16:53:03 -0500
commit4d7d44e1be9f4bfe0aae9e395b231f34d431aaaf (patch)
tree179f3c986f10391035bb47fbf7d80f1c25625e78
parent755c8ba8b3cfc9e310d9f8ec6135961a2d933282 (diff)
downloadcryptography-4d7d44e1be9f4bfe0aae9e395b231f34d431aaaf.tar.gz
cryptography-4d7d44e1be9f4bfe0aae9e395b231f34d431aaaf.tar.bz2
cryptography-4d7d44e1be9f4bfe0aae9e395b231f34d431aaaf.zip
move an assignment for clarity
-rw-r--r--cryptography/hazmat/primitives/asymmetric/padding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/asymmetric/padding.py b/cryptography/hazmat/primitives/asymmetric/padding.py
index 9755dbcf..dcc6fe06 100644
--- a/cryptography/hazmat/primitives/asymmetric/padding.py
+++ b/cryptography/hazmat/primitives/asymmetric/padding.py
@@ -59,10 +59,10 @@ class OAEP(object):
name = "EME-OAEP"
def __init__(self, mgf, algorithm, label):
- self._mgf = mgf
if not isinstance(algorithm, interfaces.HashAlgorithm):
raise TypeError("Expected instance of interfaces.HashAlgorithm.")
+ self._mgf = mgf
self._algorithm = algorithm
self._label = label