fenix icon indicating copy to clipboard operation
fenix copied to clipboard

KeyStoreException: Invalid operation handle - IllegalBlockSizeException

Open grigoryk opened this issue 6 years ago • 3 comments

https://sentry.prod.mozaws.net/operations/fenix-nightly/issues/6768842/

KeyStoreException: Invalid operation handle
    at android.security.KeyStore.getKeyStoreException(KeyStore.java:851)
    at android.security.keystore.KeyStoreCryptoOperationChunkedStreamer.update(KeyStoreCryptoOperationChunkedStreamer.java:132)
    at android.security.keystore.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:217)
    at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:506)
    at javax.crypto.Cipher.doFinal(Cipher.java:2055)
...
(15 additional frame(s) were not displayed)

IllegalBlockSizeException: None
    at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:519)
    at javax.crypto.Cipher.doFinal(Cipher.java:2055)
    at mozilla.components.lib.dataprotect.SecurePreferencesImpl23.putString(SecureAbove22Preferences.kt:8)
    at mozilla.components.lib.dataprotect.SecureAbove22Preferences.putString(SecureAbove22Preferences.kt:1)
    at mozilla.components.service.fxa.SecureAbove22AccountStorage.write(AccountStorage.kt:1)
...
(12 additional frame(s) were not displayed)

┆Issue is synchronized with this Jira Task

grigoryk avatar Dec 10 '19 00:12 grigoryk

Samsung devices have different implementation of Cipher class running in their JVM and in my case I only had to make operations with it synchronized.

https://github.com/iamMehedi/Secured-Preference-Store/issues/17#issuecomment-380678611

ekager avatar Dec 10 '19 01:12 ekager

Only 4 events, none in the last month, 50% rooted

ekager avatar Feb 04 '20 09:02 ekager

I saw in the sentry issue that "This issue has been marked as resolved.". Seems like the crash hasn't happened for several months. @ekager should we close this?

ValentinTimisica avatar Feb 27 '20 13:02 ValentinTimisica