Re: Help with SHA class
Re: Help with SHA class
- Subject: Re: Help with SHA class
- From: KK <email@hidden>
- Date: Thu, 4 Jun 2009 12:23:13 -0400
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 <email@hidden> 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, 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 that might affect the rotation/addition
> operations within the block hashing method. I'm clearly doing something
> wrong, but after several days of trying, I haven't been able to get the
> hashes to match online examples.
>
> Could someone with knowledge of SHA take a look at the class and point out
> where I'm messing up?
>
> Any help appreciated.
>
>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden