commit 059d381ba8cfed0b4c00cb9b4ec1ff13293de74c
parent 27382c210e83704c350b99ec1c9952590e4ea1bd
Author: ThomasV <thomasv@gitorious>
Date: Tue, 3 Feb 2015 08:01:01 +0100
backport padding fix to AES module
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/lib/bitcoin.py b/lib/bitcoin.py
@@ -51,6 +51,8 @@ def strip_PKCS7_padding(s):
raise ValueError("Invalid PKCS7 padding")
return s[:-numpads]
+# backport padding fix to AES module
+aes.strip_PKCS7_padding = strip_PKCS7_padding
def aes_encrypt_with_iv(key, iv, data):
mode = aes.AESModeOfOperation.modeOfOperation["CBC"]