• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Help with SHA class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with SHA class


  • Subject: Help with SHA class
  • From: Ken Tozier <email@hidden>
  • Date: Thu, 4 Jun 2009 09:29:43 -0400

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.

Attachment: SHAClass.zip
Description: Zip archive


_______________________________________________

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

  • Follow-Ups:
    • Re: Help with SHA class
      • From: KK <email@hidden>
  • Prev by Date: Re: NSNull and distinct objective-C type
  • Next by Date: XIB and AppleGlot
  • Previous by thread: Re: NSNull and distinct objective-C type
  • Next by thread: Re: Help with SHA class
  • Index(es):
    • Date
    • Thread