title: NSString to SecKeyRef
body: <p>I'm using this code: <a href="https://stackoverflow.com/a/19221754/849616">https://stackoverflow.com/a/19221754/849616</a>, however not everything is clear for me.</p>
  
  <p>I want to encrypt <code>NSString *msg = "0000"</code> using public key <code>NSString *pubKey = "1111"</code>. Because of this, I'm updating constants:</p>
  
  <pre><code>static const UInt8 publicKeyIdentifier[] = 1111; 
  // i want to encrypt only, so private key doesn't matter and I'm not posting it here
  </code></pre>
  
  <p>In function <code>testAsymmetricEncryptionAndDecryption</code> I've updated:</p>
  
  <pre><code>const char inputString[] = 0000
  </code></pre>
  
  <p>However the result is wrong. Is <code>publicKeyIdentifier</code> a right place to put my key string..? How should I do it if my approach is wrong..?</p>