title: Where to specify key and IV value when doing AES encryption/decryption in Android?
body: <p>I am working on AES encryption and decryption in android. I have an Audio file which is encrypted using AES/CBC. I have the key and IV (initialization vector).</p>
  
  <p>I have read some links. From <a href="https://stackoverflow.com/questions/6788018/android-encryption-decryption-with-aes">this</a></p>
  
  <pre><code>SecretKeySpec skeySpec = new SecretKeySpec(raw, "AES");
  </code></pre>
  
  <p>The SecretkeySpec class used. Where should I use my key and IV values?</p>
  
  <p>And I need to decrypt only first 256 bytes data only. How can I achieve this?</p>