[issue16059] Serialize MD5 computation-state and resume later

2012-10-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: Unless someone supplies a patch that works inter-operably across all platforms using public APIs in openssl and with the internals of all of python's builtin non-openssl hash functions including unitests for all of the above... This isn't going to be impleme

[issue16059] Serialize MD5 computation-state and resume later

2012-10-06 Thread Christian Heimes
Christian Heimes added the comment: I don't think it's possible to serialize an crypto hash object like MD5. The internal states of those objects are opaque data structures. There is no way official way to access the data structures in a platform independent way. It *might* be possible to hack

[issue16059] Serialize MD5 computation-state and resume later

2012-09-27 Thread R. David Murray
R. David Murray added the comment: In the python context I believe what you are asking for is to make hashlib hash objects pickleable. -- nosy: +r.david.murray versions: +Python 3.4 -Python 2.7 ___ Python tracker

[issue16059] Serialize MD5 computation-state and resume later

2012-09-26 Thread Ye Yuan
New submission from Ye Yuan: Serialize/deserialize md5 context. Pseudocode: import md5 # Start hash generation m = md5.new() m.update("Content") # Serialize m serialized_m = serialize(m) # In another function/machine, deserialize m # and continue hash generation m2 = deserialize(serialized_m)