Mantis Bugtracker

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0002086 [Squeak Packages] Cryptography feature N/A 10-16-05 02:45 10-19-05 19:13
Reporter Ron View Status public  
Assigned To
Priority normal Resolution open Platform
Status new   OS
Projection none   OS Version
ETA none Product Build
Summary 0002086: [ENH] SHA256 for Cryptography
Description There is a new class SHA256. I added a testSHA256 to the CryptoTest class (the results are from: [^] . Also there was a difference and I beleive a bug in SHA1.

First, The class SHA1 is a copy of the class SecureHashAlgorithm, there is a fix in SecureHashAlgorithm which makes more sense then what is in SHA1. The problem is that the byteArray that results from SHA1 is backwards. It appears that where SHA1 was used as it required the user to reverse the byteArray and then call asInteger. This seems wrong. The better implemntation is to just return the integer instead of the backwards byte array as in SecureHashAlgorithm. Also it appears that the asByteArray of ThirtyTwoBitRegister returns backwards (but I left that).

Second, I had to change the testSHA1 methods and it would break people code that relied on the backward SHA1 class. Although I believe this is better then leaving the error. Consistency with SecureHashAlgorithm is also preferred.

Thrid, I had to add bitShift: to ThirtyTwoBitRegister to support SHA256, this change should go to the System-Digital Signatures package.

The other classes and changes should go into Cryptgraphy, I emailed Luciano Notarfrancesco but still have not recieved a reply.

Steps To Reproduce
Additional Information
Attached Files  Crytpography Sha256.1.cs.gz [^] (3,836 bytes) 10-16-05 02:49

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
10-16-05 02:45 Ron New Issue
10-16-05 02:45 Ron Status new => assigned
10-16-05 02:45 Ron Assigned To  => KenCausey
10-16-05 02:49 Ron File Added: Crytpography Sha256.1.cs.gz
10-19-05 19:13 KenCausey Project Squeak => Squeak Packages
10-19-05 19:13 KenCausey Assigned To KenCausey =>
10-19-05 19:13 KenCausey Status assigned => new
10-19-05 19:13 KenCausey Category Any => Cryptography

Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
36 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker