On Thu, Jun 4, 2009 at 6:03 PM, Ken Tozier wrote:
>> Iff you're running it on an Intel CPU, simply compile the code for ppc and
>> use the 'arch' command to run that slice instead of the native slice. If it
>> doesn't produce the same output, then you have an implied-endian bug. If it
>> does pr
On Jun 4, 2009, at 1:35 PM, Greg Guerin wrote:
Why are you writing this algorithm?
Practice mostly. I wrote a MySQL connector class in Cocoa, but had to
copy the SHA and password scrambling code from the MySQL source. It
works, but it's really ugly and I wanted to take a crack at that par
On Thu, 4 Jun 2009 09:29:43 -0400 Ken Tozier wrote
>
> I wrote a SHA class using the algorithm at
> http://en.wikipedia.org/wiki/SHA1#SHA-1_pseudocode
<>
When in doubt, go to the source!
http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf
It's pretty easy to implement from t
I wrote a SHA class using the algorithm at http://en.wikipedia.org/
wiki/SHA1#SHA-1_pseudocode and while it runs without crashing, the
hashes it produces are not the same as those from numerous online
SHA-1 hashing converters. Of particular confusion is the issue of
byte swapping and how t
An other alternative is using the CommonCrypto API (which does not
require to link on other library like OpenSSL).
man "Common Crypto"
Le 4 juin 09 à 18:23, KK a écrit :
I ran into a similar problem - but I decided to use libcrypto:
man 3 sha1
or
man 3 EVP_DigestInit
Keita
On Thu, Jun 4, 2
I ran into a similar problem - but I decided to use libcrypto:
man 3 sha1
or
man 3 EVP_DigestInit
Keita
On Thu, Jun 4, 2009 at 9:29 AM, Ken Tozier wrote:
> Hi
>
> I wrote a SHA class using the algorithm at
> http://en.wikipedia.org/wiki/SHA1#SHA-1_pseudocode and while it runs
> without crashing