git://developer.intra2net.com
/
python-delta-tar
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
4cbed68
)
ignore the PowmInsecureWarning warning given by libgmp4 because it doesn't affect...
author
Eduardo Robles Elvira
<edulix@wadobo.com>
Tue, 22 Oct 2013 10:38:38 +0000 (12:38 +0200)
committer
Eduardo Robles Elvira
<edulix@wadobo.com>
Tue, 22 Oct 2013 10:38:38 +0000 (12:38 +0200)
deltatar/aescrypto.py
patch
|
blob
|
blame
|
history
diff --git
a/deltatar/aescrypto.py
b/deltatar/aescrypto.py
index
4e2f4e3
..
bb8cbf8
100644
(file)
--- a/
deltatar/aescrypto.py
+++ b/
deltatar/aescrypto.py
@@
-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