Skip to content

Instantly share code, notes, and snippets.

@Ashoat

Ashoat/.log Secret

Created April 13, 2024 20:40
Show Gist options
  • Save Ashoat/b514edb50a07ed3ef86cb5dd2b99c337 to your computer and use it in GitHub Desktop.
Save Ashoat/b514edb50a07ed3ef86cb5dd2b99c337 to your computer and use it in GitHub Desktop.
04-13 15:33:53.501 458 497 W ExpoSecureStore: javax.crypto.AEADBadTagException
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:626)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at javax.crypto.Cipher.doFinal(Cipher.java:2056)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.SecureStoreModule$AESEncrypter.lambda$decryptItem$1(SecureStoreModule.java:466)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.SecureStoreModule$AESEncrypter$$ExternalSyntheticLambda1.run(Unknown Source:2)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.AuthenticationHelper.handleEncryptionCallback(AuthenticationHelper.kt:86)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.AuthenticationHelper$defaultCallback$1.checkAuthentication(AuthenticationHelper.kt:73)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.SecureStoreModule$AESEncrypter.decryptItem(SecureStoreModule.java:464)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.SecureStoreModule.readJSONEncodedItem(SecureStoreModule.java:205)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.SecureStoreModule.getItemImpl(SecureStoreModule.java:177)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at expo.modules.securestore.SecureStoreModule.getValueWithKeyAsync(SecureStoreModule.java:165)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at app.comm.android.fbjni.CommSecureStore.internalGet(CommSecureStore.java:73)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at app.comm.android.fbjni.CommSecureStore.get(CommSecureStore.java:84)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at app.comm.android.fbjni.DatabaseInitializer.initializeDatabaseManager(Native Method)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at app.comm.android.MainApplication.lambda$initializeDatabase$0(MainApplication.java:125)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at app.comm.android.MainApplication$$ExternalSyntheticLambda0.run(Unknown Source:2)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at com.facebook.jni.ThreadScopeSupport.runStdFunctionImpl(Native Method)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at com.facebook.jni.ThreadScopeSupport.runStdFunction(ThreadScopeSupport.java:32)
04-13 15:33:53.501 458 497 W ExpoSecureStore: Caused by: android.security.KeyStoreException: Signature/MAC verification failed (internal Keystore code: -30 message: system/security/keystore2/src/operation.rs:850: KeystoreOperation::finish
04-13 15:33:53.501 458 497 W ExpoSecureStore:
04-13 15:33:53.501 458 497 W ExpoSecureStore: Caused by:
04-13 15:33:53.501 458 497 W ExpoSecureStore: 0: system/security/keystore2/src/operation.rs:426: Finish failed.
04-13 15:33:53.501 458 497 W ExpoSecureStore: 1: Error::Km(r#VERIFICATION_FAILED)) (public error code: 10 internal Keystore code: -30)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.KeyStore2.getKeyStoreException(KeyStore2.java:386)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.KeyStoreOperation.handleExceptions(KeyStoreOperation.java:78)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.KeyStoreOperation.finish(KeyStoreOperation.java:128)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer$MainDataStream.finish(KeyStoreCryptoOperationChunkedStreamer.java:228)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.keystore2.KeyStoreCryptoOperationChunkedStreamer.doFinal(KeyStoreCryptoOperationChunkedStreamer.java:181)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.keystore2.AndroidKeyStoreAuthenticatedAESCipherSpi$BufferAllOutputUntilDoFinalStreamer.doFinal(AndroidKeyStoreAuthenticatedAESCipherSpi.java:396)
04-13 15:33:53.501 458 497 W ExpoSecureStore: at android.security.keystore2.AndroidKeyStoreCipherSpiBase.engineDoFinal(AndroidKeyStoreCipherSpiBase.java:618)
04-13 15:33:53.501 458 497 W ExpoSecureStore: ... 16 more
04-13 15:33:53.501 458 497 E ExpoSecureStore: Caught unexpected exception when reading from SecureStore
04-13 15:33:53.501 458 497 E ExpoSecureStore: java.lang.RuntimeException: secure store get error: Could not encrypt/decrypt the value for SecureStore
04-13 15:33:53.501 458 497 E ExpoSecureStore: at app.comm.android.fbjni.CommSecureStore$2.reject(CommSecureStore.java:69)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at expo.modules.securestore.AuthenticationHelper.handleEncryptionCallback(AuthenticationHelper.kt:89)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at expo.modules.securestore.AuthenticationHelper$defaultCallback$1.checkAuthentication(AuthenticationHelper.kt:73)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at expo.modules.securestore.SecureStoreModule$AESEncrypter.decryptItem(SecureStoreModule.java:464)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at expo.modules.securestore.SecureStoreModule.readJSONEncodedItem(SecureStoreModule.java:205)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at expo.modules.securestore.SecureStoreModule.getItemImpl(SecureStoreModule.java:177)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at expo.modules.securestore.SecureStoreModule.getValueWithKeyAsync(SecureStoreModule.java:165)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at app.comm.android.fbjni.CommSecureStore.internalGet(CommSecureStore.java:73)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at app.comm.android.fbjni.CommSecureStore.get(CommSecureStore.java:84)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at app.comm.android.fbjni.DatabaseInitializer.initializeDatabaseManager(Native Method)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at app.comm.android.MainApplication.lambda$initializeDatabase$0(MainApplication.java:125)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at app.comm.android.MainApplication$$ExternalSyntheticLambda0.run(Unknown Source:2)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at com.facebook.jni.ThreadScopeSupport.runStdFunctionImpl(Native Method)
04-13 15:33:53.501 458 497 E ExpoSecureStore: at com.facebook.jni.ThreadScopeSupport.runStdFunction(ThreadScopeSupport.java:32)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment