aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 10:50:06 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2013-09-10 19:47:50 -0500
commitdc689293704e9181af452aaef495e4c417160e40 (patch)
tree4cee40f66674362d880f308326e7a969f622c7e6 /cryptography
parent29cfa6989bfbc9545c2b40e9e3b316e89c0c14ca (diff)
downloadcryptography-dc689293704e9181af452aaef495e4c417160e40.tar.gz
cryptography-dc689293704e9181af452aaef495e4c417160e40.tar.bz2
cryptography-dc689293704e9181af452aaef495e4c417160e40.zip
rename get_null_for_ecb to get_iv_for_ecb per alex's comments
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/bindings/openssl/api.py2
-rw-r--r--cryptography/primitives/block/modes.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index 02957d74..fd54a8ff 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -86,7 +86,7 @@ class API(object):
self._lib.EVP_CIPHER_CTX_set_padding(ctx, 0)
return ctx
- def get_null_for_ecb(self):
+ def get_iv_for_ecb(self):
return self._ffi.NULL
def update_encrypt_context(self, ctx, plaintext):
diff --git a/cryptography/primitives/block/modes.py b/cryptography/primitives/block/modes.py
index 82141437..e4fc886e 100644
--- a/cryptography/primitives/block/modes.py
+++ b/cryptography/primitives/block/modes.py
@@ -29,4 +29,4 @@ class ECB(object):
name = "ECB"
def get_iv_or_nonce(self, api):
- return api.get_null_for_ecb()
+ return api.get_iv_for_ecb()