Où se trouve kCCKeySizeAES128? kCCEncrypt? ... Crypto commune?
-
26-10-2019 - |
Question
Où se trouve kCCKeySizeAES128? kCCEncrypt?
J'ai trouvé "Cadre commun Crypto" en recherchant kCCKeySizeAES128, dans dev iOS. lib ..
Mais mon MacBook ne pas "Cadre commun Crypto".
Aidez-moi ... je dois utiliser kCCKeySizeAES128 et kCCEncrypt.
La solution
#import <CommonCrypto/~~~.h>
Juste cadre d'importation.
Ajout cadre n'a pas besoin.
Autres conseils
Common Crypto est pas son propre cadre. Il est construit dans libSystem. Les en-têtes dont vous avez besoin sont dans / usr / include / CommonCrypto, que vous pouvez importer en faisant
#import <CommonCrypto/~~~.h>
Plus précisément, il est défini dans CommonCryptor.h . Vous devez #import <CommonCrypto/CommonCryptor.h>
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow