cyb3rko / pincredible

Modern and secure Android app to help you remember any PIN
Apache License 2.0
77 stars 5 forks source link

Crypto Error #20

Closed iljart closed 1 year ago

iljart commented 1 year ago
android.security.keystore.KeyNotYetValidException: Key not yet valid
    at android.security.KeyStore.getInvalidKeyException(KeyStore.java:1327)
    at android.security.KeyStore.getInvalidKeyException(KeyStore.java:1397)
    at android.security.keystore.KeyStoreCryptoOperationUtils.getInvalidKeyExceptionForInit(KeyStoreCryptoOperationUtils.java:54)
    at android.security.keystore.KeyStoreCryptoOperationUtils.getExceptionForCipherInit(KeyStoreCryptoOperationUtils.java:89)
    at android.security.keystore.AndroidKeyStoreCipherSpiBase.ensureKeystoreOperationInitialized(AndroidKeyStoreCipherSpiBase.java:265)
    at android.security.keystore.AndroidKeyStoreCipherSpiBase.engineInit(AndroidKeyStoreCipherSpiBase.java:148)
    at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2980)
    at javax.crypto.Cipher.tryCombinations(Cipher.java:2891)
    at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2796)
    at javax.crypto.Cipher.chooseProvider(Cipher.java:773)
    at javax.crypto.Cipher.init(Cipher.java:1288)
    at javax.crypto.Cipher.init(Cipher.java:1223)
    at com.cyb3rko.pincredible.crypto.CryptoManager.getDecryptCipherForIv(Unknown Source:43)
    at com.cyb3rko.pincredible.crypto.CryptoManager.doDecrypt(SourceFile:47)
    at com.cyb3rko.pincredible.crypto.CryptoManager.decrypt(Unknown Source:11)
    at com.cyb3rko.pincredible.fragments.HomeFragment.retrievePins(Unknown Source:25)
    at com.cyb3rko.pincredible.fragments.HomeFragment.access$retrievePins(Unknown Source:0)
    at com.cyb3rko.pincredible.fragments.HomeFragment$readAndShowPins$1.invokeSuspend(SourceFile:35)
    at x2.a.resumeWith(Unknown Source:8)
    at o3.z.run(Unknown Source:102)
    at kotlinx.coroutines.internal.d.run(Unknown Source:11)
    at kotlinx.coroutines.scheduling.j.run(Unknown Source:2)
    at kotlinx.coroutines.scheduling.a$a.run(SourceFile:79)
    Suppressed: o3.x: [y0{Cancelling}@7261c7a, Dispatchers.IO]
cyb3rko commented 1 year ago

What phone do you use on which Android version?
Have you recently upgraded the OS? Or tried to move it to another phone as that would not work.

cyb3rko commented 1 year ago

Closed due to missing details.