aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-29 14:37:09 -0600
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-01-29 14:37:09 -0600
commitfb042ad11a98f3a8eb7103d052e4d703687c8739 (patch)
treea7310793cad94064499c5575cc99eae6c5c3820f
parent1cab104d7c95aae20bd6068c5cb54f4dce149d91 (diff)
downloadcryptography-fb042ad11a98f3a8eb7103d052e4d703687c8739.tar.gz
cryptography-fb042ad11a98f3a8eb7103d052e4d703687c8739.tar.bz2
cryptography-fb042ad11a98f3a8eb7103d052e4d703687c8739.zip
switch to private attributes in pbkdf2hmac
-rw-r--r--cryptography/hazmat/primitives/kdf/pbkdf2.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/cryptography/hazmat/primitives/kdf/pbkdf2.py b/cryptography/hazmat/primitives/kdf/pbkdf2.py
index c08e7d9a..71b88211 100644
--- a/cryptography/hazmat/primitives/kdf/pbkdf2.py
+++ b/cryptography/hazmat/primitives/kdf/pbkdf2.py
@@ -31,7 +31,7 @@ class PBKDF2HMAC(object):
algorithm.name)
)
self._used = False
- self.algorithm = algorithm
+ self._algorithm = algorithm
self._length = length
if isinstance(salt, six.text_type):
raise TypeError(
@@ -39,7 +39,7 @@ class PBKDF2HMAC(object):
"material."
)
self._salt = salt
- self.iterations = iterations
+ self._iterations = iterations
self._backend = backend
def derive(self, key_material):
@@ -53,10 +53,10 @@ class PBKDF2HMAC(object):
"material."
)
return self._backend.derive_pbkdf2_hmac(
- self.algorithm,
+ self._algorithm,
self._length,
self._salt,
- self.iterations,
+ self._iterations,
key_material
)