title: Error restoring RSA private key on Android Jelly Bean
body: <p>I use encription in my app. I store private key as bytes array and use the following code to restore it:</p>
  
  <pre><code>PrivateKey private = KeyFactory.getInstance("RSA").generatePrivate(new PKCS8EncodedKeySpec(s_privateKeyIn1t));
  </code></pre>
  
  <p>It works perfectly on all my target android platforms 2.1 -> 4.0.4, but fails on Jelly Bean!</p>
  
  <p>Jelly Bean throws an exception:</p>
  
  <pre><code>07-20 17:29:35.197: E/AnyBalance:Codec(990): Caused by: java.lang.RuntimeException: error:0D0680A8:asn1 encoding routines:ASN1_CHECK_TLEN:wrong tag
  07-20 17:29:35.197: E/AnyBalance:Codec(990):    at org.apache.harmony.xnet.provider.jsse.NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO(Native Method)
  07-20 17:29:35.197: E/AnyBalance:Codec(990):    at org.apache.harmony.xnet.provider.jsse.OpenSSLRSAKeyFactory.engineGeneratePrivate(OpenSSLRSAKeyFactory.java:73)
  </code></pre>
  
  <p>What is wrong?</p>