I'm currently developing an app which needs to send authentication data with it to a provided API. Basically it needs to generate a SHA256 based on the DATA you want to send, based on a SHARED KEY.
The API is usually used with PHP, which provides something like this handy function:
$key = hash_hmac('sha256', $postdata , $sharedkey);
in IOS function:
CC_SHA256(const void *postdata, CC_LONG len, unsigned char *md)
but this function is not an argument for key.
whether there are ways to do it?