Question

Where is kCCKeySizeAES128? kCCEncrypt?

I found "Common Crypto Framework" by searching kCCKeySizeAES128, in iOS dev. lib..

But my MacBook does not have "Common Crypto Framework".

Help me... I need to use kCCKeySizeAES128 and kCCEncrypt.

Was it helpful?

Solution

#import <CommonCrypto/~~~.h>

Just Import framework.

Adding framework does not needed.

OTHER TIPS

Common Crypto is not its own framework. It's built into libSystem. The headers you need are in /usr/include/CommonCrypto, which you can import by doing

#import <CommonCrypto/~~~.h>

More precisely, it's defined in CommonCryptor.h. You should #import <CommonCrypto/CommonCryptor.h>

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top