Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active May 22, 2018 03:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/cc884470dd6148011cca0d5b4488878f to your computer and use it in GitHub Desktop.
Save laevandus/cc884470dd6148011cca0d5b4488878f to your computer and use it in GitHub Desktop.
/*!
@function CCHmac
@abstract Create the Message Authentication Code.
@param algorithm HMAC algorithm to perform.
@param key Raw key bytes.
@param keyLength Count of raw key bytes. It can also be zero.
@param data Raw data bytes.
@param dataLength Count of data bytes.
@param macOut Output buffer allocated by caller.
*/
void CCHmac(CCHmacAlgorithm algorithm, const void *key, size_t keyLength, const void *data, size_t dataLength, void *macOut);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment