im trying to get a call to the amazon web service and i'm stuck on getting a signature, looked at it but i still have a question.
using this example what is
NSData *keyData; NSData *clearTextData
? what do i need to pass for these two values?
uint8_t digest[CC_SHA1_DIGEST_LENGTH] = {0}; CCHmacContext hmacContext; CCHmacInit(&hmacContext, kCCHmacAlgSHA1, keyData.bytes, keyData.length); CCHmacUpdate(&hmacContext, clearTextData.bytes, clearTextData.length); CCHmacFinal(&hmacContext, digest); NSData *out = [NSData dataWithBytes:digest length:CC_SHA1_DIGEST_LENGTH]
iphone hmac sha1
nownot
source share