title: Android KeyStore error codes
body: <p>I'm using Android KeyStore implementation, and getting an exception trying to setEntry: java.security.KeyStoreException: Failed to import secret key. Keystore error code: -6</p>
  
  <p>Does anyone know where I can get information about these error codes? What exactly do they mean?</p>
  
  <p>I have tried to decompile, but could not get the source code. Found the class here <a href="https://android.googlesource.com/platform/frameworks/base/+/c58153b/keystore/java/android/security/keystore/AndroidKeyStoreSpi.java" rel="nofollow">AndroidKeyStoreSpi</a>, but it does not seem to be the right one, since line numbers do not match, and it does not help much either as it refers to a method called "importKey", which does not exist in the KeyStore class (or at least in the one I found documented).</p>
  
  <p>Any help will be appreciated!</p>