Hi,
i'm trying to make a framework, with some ECC functions, to be shared between apps and other developers as well.
As i'm targeting iOS 10+ currently, i'm able to enjoy the excellent updates to the Security framework - from key and signature generation, to it's verification and making of shared keys. But i've run into a few questions.
First, is it possible to generate an HMAC without having to go to CommonCrypto, preferably using something from the Security framework (obviously it's possible to write ones own implementation for generating an HMAC, but let's leave this option out for n + 1 reasons)?
If no, then can i use CommonCrypto in apps destined for the App Store? If not, what are the options?
My current implementation is done using this function:
CCHmac(CCHmacAlgorithm(kCCHmacAlgSHA256), hmacKey, hmacKey.count, hmacData, hmacData.count, &hmac)
Which i presume does the same thing as the functions below?
If not, what are the differences between the above and the functions below?
CCHmacInit(...)
CCHmacUpdate(...)
CCHmacFinal(...)
Best of wishes,
Mikk