java.security.InvalidKeyException: Keystore operation failed

Stack Overflow | Frank | 1 month ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    android.security.KeyStoreException: Incompatible purpose

    Stack Overflow | 12 months ago | Ankis
    android.security.KeyStoreException: Incompatible purpose
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. android.security.KeyStoreException

      Incompatible digest

      at android.security.KeyStore.getKeyStoreException()
    2. Android Platform
      KeyStore.getInvalidKeyException
      1. android.security.KeyStore.getKeyStoreException(KeyStore.java:944)
      2. android.security.KeyStore.getInvalidKeyException(KeyStore.java:1024)
      2 frames
    3. android.security.keystore
      AndroidKeyStoreCipherSpiBase.engineInit
      1. android.security.keystore.KeyStoreCryptoOperationUtils.getInvalidKeyExceptionForInit(KeyStoreCryptoOperationUtils.java:53)
      2. android.security.keystore.KeyStoreCryptoOperationUtils.getExceptionForCipherInit(KeyStoreCryptoOperationUtils.java:89)
      3. android.security.keystore.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:263)
      4. android.security.keystore.AndroidKeyStoreCipherSpiBase.engineInit(AndroidKeyStoreCipherSpiBase.java:108)
      4 frames
    4. Android Platform
      Cipher.init
      1. javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:612)
      2. javax.crypto.Cipher.tryCombinations(Cipher.java:532)
      3. javax.crypto.Cipher.getSpi(Cipher.java:437)
      4. javax.crypto.Cipher.init(Cipher.java:815)
      5. javax.crypto.Cipher.init(Cipher.java:774)
      5 frames
    5. com.mycompany.security
      KeyStoreWrapper.signHash
      1. com.mycompany.security.KeyStoreWrapper.signHash(KeyStoreWrapper.java:186)
      1 frame