The Security services API doesn\'t appear to allow me to compute a hash directly. There are plenty of public domain and liberally licensed versions available, but I\'d rathe
+ (NSData *)sha256DataFromData:(NSData *)data { unsigned char result[CC_SHA256_DIGEST_LENGTH]; CC_SHA256([data bytes], (int)[data length], result); return [NSData dataWithBytes:result length:CC_SHA256_DIGEST_LENGTH]; }