基本的には以下のApple公式のサンプルを読めばOK。 CryptoExercise http://developer.apple.com/iphone/library/samplecode/CryptoExercise/Introduction/Intro.html 特に読むべきところは SecKeyWrapper.m ファイルの以下のメソッド - (NSData *)doCipher:(NSData *)plainText key:(NSData *)symmetricKey context:(CCOperation)encryptOrDecrypt padding:(CCOptions *)pkcs7 AESについての基礎知識がまだない場合は以下のサイトなどがおすすめ。 The AES-CBC Cipher Algorithm and Its Use with IPsec http:
![iPhoneアプリでAES暗号を使う方法 - 強火で進め](https://cdn-ak-scissors.b.st-hatena.com/image/square/4d82b0e697c6deb012057481dfcafa03599e910a/height=288;version=1;width=512/https%3A%2F%2Fimages-fe.ssl-images-amazon.com%2Fimages%2FI%2F51evnioBHsL._SL160_.jpg)