• 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
Re: Help with SHA class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with SHA class


  • Subject: Re: Help with SHA class
  • From: Jean-Daniel Dupas <email@hidden>
  • Date: Thu, 4 Jun 2009 18:31:03 +0200

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, 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


_______________________________________________

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


References: 
 >Help with SHA class (From: Ken Tozier <email@hidden>)
 >Re: Help with SHA class (From: KK <email@hidden>)

  • Prev by Date: Re: Help with SHA class
  • Next by Date: Re: launchd detecting when an application is running
  • Previous by thread: Re: Help with SHA class
  • Next by thread: Re: Help with SHA class
  • Index(es):
    • Date
    • Thread