title: Is it possible to use AES128 with GCM mode on iOS?
body: <p>So my question for you stackoverflow geniuses is: if there a way (native, library, framework, whatever..) to <strong>encrypt data with AES</strong> (preferably 128 but could be 256 too) using a strong <strong>Authenticated encryption algorithm</strong>, let's say <strong>GCM mode</strong>?</p>
  
  <p>Question is short, I have done some research and I only found one library that seems to support it ( <a href="https://github.com/RNCryptor/RNCryptor" rel="noreferrer">RNCryptor</a> ) but it also seems to use <strong>password to crypt instead of keys</strong> (like you provide a password and the library made the key) and I don't like that a lot, I <strong>prefer to manage my keys myself</strong>.</p>
  
  <p>I also look at <em><a href="http://www.opensource.apple.com/source/CommonCrypto/CommonCrypto-60026/Source/API/CommonCryptor.c" rel="noreferrer">CommonCryptor.h</a></em> and I found that line, which seems to me the only reference of GCM in commoncryptor source code (but I could be wrong, actually I am probably wrong) :</p>
  
  <pre><code>case kCCModeGCM: if((ref-&gt;symMode[direction].gcm = getCipherMode(cipher, mode, direction).gcm) == NULL) return kCCUnimplemented;
  </code></pre>
  
  <p>Thanks by advance !</p>