aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChirag Jog <chirag@clogeny.com>2014-06-16 15:18:01 +0000
committerChirag Jog <chirag@clogeny.com>2014-06-16 15:18:01 +0000
commit1dfdd28c5fc035d1cc9ed6bf64b959029624af03 (patch)
treefbf5168901c91c7117e7fd6a506f92ebe2fc13b0
parenta73f1a1a137b941d4c86e2f18d81f586be273a7d (diff)
downloadcryptography-1dfdd28c5fc035d1cc9ed6bf64b959029624af03.tar.gz
cryptography-1dfdd28c5fc035d1cc9ed6bf64b959029624af03.tar.bz2
cryptography-1dfdd28c5fc035d1cc9ed6bf64b959029624af03.zip
Fix the comment to conform to PEP8 standards.
-rw-r--r--cryptography/hazmat/bindings/openssl/aes.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/cryptography/hazmat/bindings/openssl/aes.py b/cryptography/hazmat/bindings/openssl/aes.py
index 4f79cd07..fa8cbc7e 100644
--- a/cryptography/hazmat/bindings/openssl/aes.py
+++ b/cryptography/hazmat/bindings/openssl/aes.py
@@ -29,12 +29,6 @@ typedef struct aes_key_st AES_KEY;
FUNCTIONS = """
int AES_set_encrypt_key(const unsigned char *, const int, AES_KEY *);
int AES_set_decrypt_key(const unsigned char *, const int, AES_KEY *);
-/* The ctr128_encrypt function is only useful in 0.9.8. You should use EVP for
- this in 1.0.0+. */
-void AES_ctr128_encrypt(const unsigned char *, unsigned char *,
- const unsigned size_t, const AES_KEY *,
- unsigned char[], unsigned char[], unsigned int *);
-
"""
MACROS = """
@@ -44,6 +38,14 @@ int AES_wrap_key(AES_KEY *, const unsigned char *, unsigned char *,
const unsigned char *, unsigned int);
int AES_unwrap_key(AES_KEY *, const unsigned char *, unsigned char *,
const unsigned char *, unsigned int);
+
+/* The ctr128_encrypt function is only useful in 0.9.8. You should use EVP for
+ this in 1.0.0+. It is defined in macros because the function signature
+ changed after 0.9.8 */
+void AES_ctr128_encrypt(const unsigned char *, unsigned char *,
+ const unsigned size_t, const AES_KEY *,
+ unsigned char[], unsigned char[], unsigned int *);
+
"""
CUSTOMIZATIONS = """