aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-11 10:07:07 -0400
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-03-11 10:07:07 -0400
commitd70ed95d37e3ce5f86ed8018e5051ad3aed9fe3a (patch)
tree9a4db45e3866d1e9e0b7a864cd27292528102c8d /cryptography
parent08712cfb25227472d2586164b941f495d4c3b901 (diff)
downloadcryptography-d70ed95d37e3ce5f86ed8018e5051ad3aed9fe3a.tar.gz
cryptography-d70ed95d37e3ce5f86ed8018e5051ad3aed9fe3a.tar.bz2
cryptography-d70ed95d37e3ce5f86ed8018e5051ad3aed9fe3a.zip
make attributes of MGF1 private since that's our general convention
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/primitives/asymmetric/padding.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/hazmat/primitives/asymmetric/padding.py b/cryptography/hazmat/primitives/asymmetric/padding.py
index 62b32dd2..f1c886bf 100644
--- a/cryptography/hazmat/primitives/asymmetric/padding.py
+++ b/cryptography/hazmat/primitives/asymmetric/padding.py
@@ -33,7 +33,7 @@ class MGF1(object):
if not isinstance(algorithm, interfaces.HashAlgorithm):
raise TypeError("Expected instance of interfaces.HashAlgorithm.")
- self.algorithm = algorithm
+ self._algorithm = algorithm
if (not isinstance(salt_length, six.integer_types) and
not salt_length is self.MAX_LENGTH):
@@ -42,4 +42,4 @@ class MGF1(object):
if not salt_length is self.MAX_LENGTH and salt_length < 0:
raise ValueError("salt_length must be zero or greater")
- self.salt_length = salt_length
+ self._salt_length = salt_length