Red Hat Bugzilla – Bug 472808
RFE: Hashing enhancements
Last modified: 2010-04-14 15:32:23 EDT
Version-Release number of selected component (if applicable):
It would be nice to be able to do the following through python-nss:
* Compute hashes incrementally (using an interface similar to Python's hashlib
module). Storing 100MB of data in memory only to hash it is rather wasteful.
* Compute HMAC authentication codes.
Since this RFE was first filed python-nss has added more support for hashing, however it did not include a "feed" interface. I'm in the process of adding a number of new features to python-nss which should be available soon. I'll make sure the next release has this functionality. I may ask you to test it before I officially release it :-)
Apparently my memory is failing me :-) This functionality was already implemented and has already been pushed out in python-nss-0.8.
see /usr/share/doc/python-nss-0.8/examples/digest_test.py for an example of how to use it.