diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-25 14:34:20 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2014-04-25 14:34:20 -0500 |
commit | be4e43a5fe9c312f1cfc0511dfa4ef7438c5b20b (patch) | |
tree | 418355544d84c817beb3da531426680b3110ed7d | |
parent | bfc444e5892a09ec23a25496fc268c35083d1aa0 (diff) | |
download | cryptography-be4e43a5fe9c312f1cfc0511dfa4ef7438c5b20b.tar.gz cryptography-be4e43a5fe9c312f1cfc0511dfa4ef7438c5b20b.tar.bz2 cryptography-be4e43a5fe9c312f1cfc0511dfa4ef7438c5b20b.zip |
backend->self in a few places
-rw-r--r-- | cryptography/hazmat/backends/openssl/backend.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cryptography/hazmat/backends/openssl/backend.py b/cryptography/hazmat/backends/openssl/backend.py index 16b963ae..2d7e2307 100644 --- a/cryptography/hazmat/backends/openssl/backend.py +++ b/cryptography/hazmat/backends/openssl/backend.py @@ -351,7 +351,7 @@ class Backend(object): def _new_evp_pkey(self): evp_pkey = self._lib.EVP_PKEY_new() assert evp_pkey != self._ffi.NULL - return self._ffi.gc(evp_pkey, backend._lib.EVP_PKEY_free) + return self._ffi.gc(evp_pkey, self._lib.EVP_PKEY_free) def _rsa_private_key_to_evp_pkey(self, private_key): evp_pkey = self._new_evp_pkey() @@ -580,8 +580,8 @@ class Backend(object): def cmac_algorithm_supported(self, algorithm): return ( - backend._lib.Cryptography_HAS_CMAC == 1 - and backend.cipher_supported(algorithm, CBC( + self._lib.Cryptography_HAS_CMAC == 1 + and self.cipher_supported(algorithm, CBC( b"\x00" * algorithm.block_size)) ) |