문제

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.

도움이 되었습니까?

해결책

#import <CommonCrypto/~~~.h>

Just Import framework.

Adding framework does not needed.

다른 팁

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>

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top