From 605b225ff5d4f711b29b57e4b6f0ac4611ec0409 Mon Sep 17 00:00:00 2001 From: Donald Stufft Date: Sat, 10 Aug 2013 18:20:29 -0400 Subject: Add a comment to note that disabling padding is desired --- cryptography/bindings/openssl/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3