-
-
Notifications
You must be signed in to change notification settings - Fork 552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update pycrypto to 2.6.1 #14854
Comments
Changed keywords from none to spkg pycrypto |
comment:1
This would be a good time to cleanup spkg scripts. |
Branch: u/jpflori/ticket/14854 |
Commit: |
This comment has been minimized.
This comment has been minimized.
Author: Jean-Pierre Flori |
Dependencies: #12399 |
comment:4
This was in #15531 but I'm pretty sure it applies here just as well:
|
comment:5
Oops, I'll have a look at it. |
comment:6
The errors are because pycrpto wants a secure (hum, let's say more side channel attacks resistant) implem of modular exponentiation or issues a warning. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:8
The solution I've implemented is to filter pycrypto warnings in the warnings module. |
comment:9
On a different topic, the only funciton actually used is in the monoids files, and that's only the byte_to_long function, so maybe we should implement this ourselves. |
comment:10
I'd rather modify the tests and preserve the warning... |
comment:11
Should we explicitely match the warning or filter it with "..."? |
comment:12
Explicit is better than implicit (one of Python's credos), but then I don't care that much ;-) |
comment:13
Let's go for explicit. As I said, I think we should get rid of the pycrypto use in the monoid stuff anyway, so when that's the case it will force us to remove the explicit things rather than leaving ... evrywhere. |
comment:14
Unfortunately I'm not sure I can do anything else as what I did as the warning only comes up the first time the BinaryStrings().encoding("") is used so it depends on the order the tests within the file will be run. Maybe better reimplement bytes_to_long and long_to_bytes directly. |
comment:15
The order of doctests is top to bottom, isn't it? |
comment:17
I've replaced the pycrypto functions by plain python funcitons which seem to be adequate for our use. |
comment:18
lgtm |
Reviewer: Volker Braun |
We ship 2.1.0.
Use git branch and upstream tarball at:
Depends on #12399
Component: packages: standard
Keywords: spkg pycrypto
Author: Jean-Pierre Flori
Branch/Commit: u/jpflori/ticket/14854 @
83eeb4b
Reviewer: Volker Braun
Issue created by migration from https://trac.sagemath.org/ticket/14854
The text was updated successfully, but these errors were encountered: