You can always use OpenSSL on iPhone, and it supports AES 256.
In this case, kCCAlgorithmAES128
means the length of the block 128, and not the length of the key. According to this sample code (found in this answer ) you just need to use kCCKeySizeAES256
for the keyLength
parameter to support 256-bit keys.
source share