I have read the header of CommonCryptor.h, and only I can find kCCAlgorithmAES128
But there are a few answer in SO stating it can, e.g.
AES Encryption for an NSString on the iPhone
Anyone can answer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can always use OpenSSL on iPhone, and that does support AES 256.
That being said,
kCCAlgorithmAES128means a block length of 128, not key length. According to this example code (found in this answer) you simply need to usekCCKeySizeAES256for thekeyLengthparameter to get support for 256 bit keys.