ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't affect...
authorEduardo Robles Elvira <edulix@wadobo.com>
Tue, 22 Oct 2013 10:38:38 +0000 (12:38 +0200)
committerEduardo Robles Elvira <edulix@wadobo.com>
Tue, 22 Oct 2013 10:38:38 +0000 (12:38 +0200)
deltatar/aescrypto.py

index 4e2f4e3..bb8cbf8 100644 (file)
@@ -26,6 +26,13 @@ compatible with openssl command.
 
 
 from hashlib import md5
+
+# we ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't
+# affect our code
+import warnings
+from Crypto.pct_warnings import PowmInsecureWarning
+warnings.simplefilter("ignore", PowmInsecureWarning)
+
 from Crypto.Cipher import AES
 from Crypto import Random