Opened at 2010-07-06T05:20:38Z
Closed at 2010-09-05T02:51:35Z
#43 closed defect (fixed)
add a quick start-up self test for SHA-256
Reported by: | zooko | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Version: | 0.5.19 | Keywords: | |
Cc: | Launchpad Bug: |
Description
Add a "quick start-up self test" to pycryptopp which exercises the SHA-256 code at a minimal cost in time. This would be analogous to the "quick start-up self test" that for AES:
http://tahoe-lafs.org/trac/pycryptopp/changeset/683/trunk
I guess for the SHA-256 test I would just copy this one unit test which exercises different chunk sizes:
http://tahoe-lafs.org/trac/pycryptopp/browser/trunk/pycryptopp/test/test_sha256.py?rev=692#L87
I guess that would *not* (probably) exercise the really weird cases such as the input crossing 0x80000000, but it would give me some confidence. Users of pycryptopp would be encouraged to execute the quick startup self test one time after loading pycryptopp.
Change History (2)
comment:1 Changed at 2010-07-06T05:24:42Z by zooko
comment:2 Changed at 2010-09-05T02:51:35Z by zooko
- Resolution set to fixed
- Status changed from new to closed
fixed by [20100905015847-92b7f-ae840d3219afac40eb377ad6c55560a3d5304ec4]
http://tahoe-lafs.org/pipermail/tahoe-dev/2010-July/004604.html