Pergunta

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.

Foi útil?

Solução

#import <CommonCrypto/~~~.h>

Just Import framework.

Adding framework does not needed.

Outras dicas

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>

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top