• 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: Keychain issues with public key on iOS
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keychain issues with public key on iOS


  • Subject: Re: Keychain issues with public key on iOS
  • From: Jens Alfke <email@hidden>
  • Date: Mon, 11 Feb 2013 10:28:50 -0800

On Feb 10, 2013, at 10:03 PM, Damien Cooke <email@hidden> wrote:

> Is there any chance you could share the ComputeSHA1 message with me?  I know you said it was only a wrapper for commonCrypto but I am so lost in this stuff I want t check everything.

Sure; it’s pretty trivial:

typedef struct {
    uint8_t bytes[20];
} SHA1Digest;

SHA1Digest ComputeSHA1(NSData* data) {
    NSCParameterAssert(data);
    SHA1Digest digest;
    CC_SHA1(data.bytes, (CC_LONG)data.length, digest.bytes);
    return digest;
}

—Jens
_______________________________________________

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: 
 >Keychain issues with public key on iOS (From: Damien Cooke <email@hidden>)
 >Re: Keychain issues with public key on iOS (From: Jens Alfke <email@hidden>)
 >Re: Keychain issues with public key on iOS (From: Damien Cooke <email@hidden>)

  • Prev by Date: Re: How to read the deployment target of a .plugin?
  • Next by Date: NSLayoutConstraints
  • Previous by thread: Re: Keychain issues with public key on iOS
  • Next by thread: UI_APPEARANCE_SELECTOR question
  • Index(es):
    • Date
    • Thread