SHA1 reversed bytes?

Ned Konz ned at squeakland.org
Thu Mar 10 14:19:41 UTC 2005


On Thursday 10 March 2005 6:00 am, Tony Garnock-Jones wrote:
> Ned Konz wrote:
> > Where is the SHA1 code?
>
> In the "Cryptography" package on SM.

What happens when you use the SecureHashAlgorithm code in the stock image, 
which looks like a newer copy of the SHA1 code in that package?

Notably:

SecureHashAlgorithm selectors difference: SHA1 selectors

reports:
 a Set(#hashMessage:)

and:

Transcript open.
SHA1 selectors do: [ :sel |
 (SHA1 sourceCodeAt: sel) = (SecureHashAlgorithm sourceCodeAt: sel)
  ifFalse: [ Transcript print: sel; nextPutAll: ' different'; cr  ]
].
Transcript endEntry

reports:

#hashStream: different
#hashInteger:seed: different

-- 
Ned Konz
http://bike-nomad.com/squeak/



More information about the Squeak-dev mailing list