Hello,
I have this stack of exceptions when using the KeyStoreKeyGenerator class
Caused by: java.lang.IllegalStateException:
at in.co.ophio.secure.core.KeyStoreKeyGenerator.<init> (KeyStoreKeyGenerator.java)
at in.co.ophio.secure.core.KeyStoreKeyGenerator.get (KeyStoreKeyGenerator.java)
Caused by: java.security.InvalidKeyException:
at com.android.org.conscrypt.OpenSSLCipherRSA.engineUnwrap (OpenSSLCipherRSA.java:340)
at javax.crypto.Cipher.unwrap (Cipher.java:1545)
at in.co.ophio.secure.vault.SecretKeyWrapper.generateKeyPair (SecretKeyWrapper.java)
or .unwrap (SecretKeyWrapper.java)
or .wrap (SecretKeyWrapper.java)
at in.co.ophio.secure.core.KeyStoreKeyGenerator.get (KeyStoreKeyGenerator.java)
or .loadOrGenerateKeys (KeyStoreKeyGenerator.java)
at in.co.ophio.secure.core.KeyStoreKeyGenerator.<init> (KeyStoreKeyGenerator.java)
at in.co.ophio.secure.core.KeyStoreKeyGenerator.get (KeyStoreKeyGenerator.java)
or .loadOrGenerateKeys (KeyStoreKeyGenerator.java)
Caused by: javax.crypto.BadPaddingException:
at com.android.org.conscrypt.NativeCrypto.RSA_private_decrypt (NativeCrypto.java)
at com.android.org.conscrypt.OpenSSLCipherRSA.engineDoFinal (OpenSSLCipherRSA.java:273)
at com.android.org.conscrypt.OpenSSLCipherRSA.engineUnwrap (OpenSSLCipherRSA.java:325)
at javax.crypto.Cipher.unwrap (Cipher.java:1545)
Hello, I have this stack of exceptions when using the KeyStoreKeyGenerator class