aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDonald Stufft <donald@stufft.io>2013-08-10 18:20:29 -0400
committerDonald Stufft <donald@stufft.io>2013-08-10 18:20:29 -0400
commit605b225ff5d4f711b29b57e4b6f0ac4611ec0409 (patch)
tree65ac5f3f7317f386b622b7844b10be3db68e7768
parent668c4457e1313a63c49dcf0209d9188c8eb487d1 (diff)
downloadcryptography-605b225ff5d4f711b29b57e4b6f0ac4611ec0409.tar.gz
cryptography-605b225ff5d4f711b29b57e4b6f0ac4611ec0409.tar.bz2
cryptography-605b225ff5d4f711b29b57e4b6f0ac4611ec0409.zip
Add a comment to note that disabling padding is desired
-rw-r--r--cryptography/bindings/openssl/api.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cryptography/bindings/openssl/api.py b/cryptography/bindings/openssl/api.py
index 720a6ad4..65a29b85 100644
--- a/cryptography/bindings/openssl/api.py
+++ b/cryptography/bindings/openssl/api.py
@@ -81,7 +81,9 @@ class API(object):
)
if res == 0:
raise OpenSSLError(self)
- # TODO: this should depend on mode.padding
+
+ # We purposely disable padding here as it's handled higher up in the
+ # API.
self._lib.EVP_CIPHER_CTX_set_padding(ctx, 0)
return ctx