Alex Rivera | Logout

Can iOS really support AES 256?

Asked 2012-03-08T11:49:11.510
8

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?

Edit
Report

1 Answer

15

You can always use OpenSSL on iPhone, and that does support AES 256.

That being said, kCCAlgorithmAES128 means a block length of 128, not key length. According to this example code (found in this answer) you simply need to use kCCKeySizeAES256 for the keyLength parameter to get support for 256 bit keys.

answered 2012-03-08T11:53:04.030

Your Answer