Jump to content
Enpass Discussion Forum

Fingerprint error: "failed to encrypt the data with the generated key"


saifer

Recommended Posts

I'm trying to use fingerprint authentication for Enpass (both stable and beta version) but it says "failed to encrypt the data with the generated key". Anyone else having this problem? Other apps with fingerprint authentication work well. I've tried several times, with fresh install, giving permission, etc.

Link to comment
Share on other sites

54 minutes ago, Anshu kumar said:

Hey @saifer

Sorry for the trouble you are going through.

Please share some more info so that we can help you better.

  • Which Android device and Android version are using?
  • Which Enpass version are you using?
  • Have you installed custom Rom on your device?
Thanks for your co-operation.
  • I've got a ZUK Z1, with android 8.1.0 Oreo
  • Beta version: 6.0.0.98, but same problem with the stable one on Play Store
  • Yes, is AospExtended v5.8 OFFICIAL, patched to 5 September 2018. As I've said other apps with fingerprint authentication work well.
Link to comment
Share on other sites

On 12/17/2018 at 4:25 PM, Anshu kumar said:

Hey @saifer

Sorry for the trouble you are going through.

Please share some more info so that we can help you better.

  • Which Android device and Android version are using?
  • Which Enpass version are you using?
  • Have you installed custom Rom on your device?
Thanks for your co-operation.

Having the same issue in Android Pie, info is given below

Redmi Note 4, Android Pie 9.0

Version 6.0.0.98

Yes, i'm using custom rom built by me for security reasons.  FP works well for all other applications except enpass.

Link to comment
Share on other sites

Guten Tag, ich habe ebenfalls das Problem.

Version 6.0.0.100 (Beta)

DROID INFO BERICHT


GERÄT
Modell: U FEEL (P6609BCD)
Hersteller: WIKO
Basisband-Version: MOLY.LR9.W1444.MD.LWTG.MP.V79.P32, 2016/10/19 20:38
RIL-Version: mtk gemini ril 1.0
Build-Nummer : Alpen-mp-m0.mp1-V2.39.1_tinno6735.35u.m0_P44
Errichten-Fingerabdruck: WIKO / P6609BCD / P6609BCD: 6.0 / MRA58K / 1468384577: Benutzer / Release-Tasten
Bootloader: unbekannt
Java VM: ART 2.1.0
OS- Version: Marshmallow (6.0)
SDK: 23

ANZEIGE
Auflösung: HD, 720x1280 Pixel
Softwaredichte: 320 dpi (xhdpi)
Erneuerungsrate: 60,07 Hz

PROZESSOR
CPU-Architektur: ARMv7 Prozessor Rev. 3 (v7l) Platine
: unbekannt
Chipsatz: MT6735
Kerne: 4
Taktungsgeschwindigkeit: 299 MHz - 1300 MHz
Anleitungssets: Armeabi-V7a, Armeabi-
CPU-Merkmale: Halfmult FastMult VFP Edsp neon vfpd32 lpae evtstrm aes pmull sha1 sha2 crc32
CPU-Regler: interaktive
Kernel-Version: 3.18.19+
Kernel-Architektur: armv7l

GRAFIKEN
Renderer: Mali-T720
Verkäufer: ARM
OpenGL-Version: OpenGL ES 3.0

RAM
Gesamt: 2956 MB
Java-Heap: 128 MB

SPEICHER
Intern: 10,8 GB
Extern: 117,4 GB

Primar KAMERA
Auflösung: 13 MP
Blitz: Ja
Video Auflösung: 320x240
Unterstützte Auflösungen: 
    Bild:
    320x240
    640x480
    1024x768
    1280x720
    1280x768
    1280x960
    1600x1200
    1920x1088
    2048x1536
    2560x1440
    2560x1920
    3264x2448
    3328x1872
    2880x1728
    3600x2160
    4096x2304
    4096x3072
    4160x3120

    Video:
    176x144
    480x320
    640x480 (VGA)
    720x480
    864x480
    1280x720 (HD)
    1920x1080 (Full HD)
    1920x1088
    3840x2160 (4K UHD)
    4208x3120
    352x288
    320x240

Sekundar KAMERA
Auflösung: 4,9 MP
Video Auflösung: 1920x1088
Unterstützte Auflösungen: 
    Bild:
    320x240
    640x480
    1024x768
    1280x720
    1280x768
    1280x960
    1600x1200
    1920x1088
    2048x1536
    2560x1440
    2560x1920

    Video:
    176x144
    320x240
    352x288
    480x320
    640x480 (VGA)
    864x480
    1280x720 (HD)
    720x480
    1280x736
    1920x1088

FUNKTIONEN
Bluetooth: Ja
Bluetooth LE: Ja
GPS: Ja
NFC: Nein
USB Zubehörteil: Ja
WiFi: Ja
WiFi Direct: Ja

AKKU
Technologie: Li-Ion
Gesundheit: Gut

SENSOREN
ACCELEROMETER
PROXIMITY
LIGHT
GYROSCOPE
Orientierungssensor
MAGNETOMETER
Rotationsvektorsensor
Schwerkraftsensor
Linearer Beschleunigungssensor


Erstellt von Droid Info

Edited by Noridu
Version ergänzt.
Link to comment
Share on other sites

  • 4 weeks later...
On 12/20/2018 at 10:00 AM, Anshu kumar said:

Hey guys,

From first sight, it seems OS is having the problem while initializing fingerprint authenticated crypto provider. I've notified the dev team to look into it.

Till then please wait and co-operate with us.

I've installed official LineageOS 15.1 on my phone and got the same problem.

Link to comment
Share on other sites

  • 4 months later...

I've got the same problem on a Vernee Thor.

I extracted the error stack trace (@devs you can fin it bellow).

It seems that the actual code doesn't properly handle multi fingerprints. You can suppress all the fingerprints from the security settings of Android and only add one for now.

It did the trick for me. Hope it helps others.

2019-05-27 18:23:27.584 22246-22246/? W/System.err: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:240)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi$AES.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:53)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at javax.crypto.KeyGenerator.init(KeyGenerator.java:487)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at javax.crypto.KeyGenerator.init(KeyGenerator.java:470)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.createNewKey(FingerprintKeyStoreHelper.java:274)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:77)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.preference.Preference.performClick(Preference.java:1022)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AdapterView.performItemClick(AdapterView.java:315)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AbsListView$4.run(AbsListView.java:4382)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.os.Handler.handleCallback(Handler.java:836)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:103)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.os.Looper.loop(Looper.java:203)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6251)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
2019-05-27 18:23:27.586 22246-22246/? W/System.err: Caused by: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use
2019-05-27 18:23:27.586 22246-22246/? W/System.err:     at android.security.keystore.KeymasterUtils.addUserAuthArgs(KeymasterUtils.java:117)
2019-05-27 18:23:27.586 22246-22246/? W/System.err:     at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:234)
2019-05-27 18:23:27.586 22246-22246/? W/System.err: 	... 21 more
2019-05-27 18:23:27.596 22246-22246/? W/System.err: java.security.InvalidKeyException: Only SecretKey is supported
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:435)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:260)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2977)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.tryCombinations(Cipher.java:2884)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2789)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.chooseProvider(Cipher.java:956)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.init(Cipher.java:1199)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.init(Cipher.java:1143)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.initEncryptCipher(FingerprintKeyStoreHelper.java:96)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:81)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at android.preference.Preference.performClick(Preference.java:1022)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AdapterView.performItemClick(AdapterView.java:315)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AbsListView$4.run(AbsListView.java:4382)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.os.Handler.handleCallback(Handler.java:836)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:103)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.os.Looper.loop(Looper.java:203)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6251)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

 

Link to comment
Share on other sites

I've got the same problem on a Vernee Thor.

I extracted the error stack trace (@devs you can fin it bellow).

It seems that the actual code doesn't properly handle multi fingerprints. You can suppress all the fingerprints from the security settings of Android and only add one for now.

It did the trick for me. Hope it helps others.

2019-05-27 18:23:27.584 22246-22246/? W/System.err: java.security.InvalidAlgorithmParameterException: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:240)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi$AES.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:53)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at javax.crypto.KeyGenerator.init(KeyGenerator.java:487)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at javax.crypto.KeyGenerator.init(KeyGenerator.java:470)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.createNewKey(FingerprintKeyStoreHelper.java:274)
2019-05-27 18:23:27.584 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:77)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.preference.Preference.performClick(Preference.java:1022)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AdapterView.performItemClick(AdapterView.java:315)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.widget.AbsListView$4.run(AbsListView.java:4382)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.os.Handler.handleCallback(Handler.java:836)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:103)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.os.Looper.loop(Looper.java:203)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6251)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
2019-05-27 18:23:27.585 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
2019-05-27 18:23:27.586 22246-22246/? W/System.err: Caused by: java.lang.IllegalStateException: At least one fingerprint must be enrolled to create keys requiring user authentication for every use
2019-05-27 18:23:27.586 22246-22246/? W/System.err:     at android.security.keystore.KeymasterUtils.addUserAuthArgs(KeymasterUtils.java:117)
2019-05-27 18:23:27.586 22246-22246/? W/System.err:     at android.security.keystore.AndroidKeyStoreKeyGeneratorSpi.engineInit(AndroidKeyStoreKeyGeneratorSpi.java:234)
2019-05-27 18:23:27.586 22246-22246/? W/System.err: 	... 21 more
2019-05-27 18:23:27.596 22246-22246/? W/System.err: java.security.InvalidKeyException: Only SecretKey is supported
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at com.android.org.conscrypt.OpenSSLCipher.checkAndSetEncodedKey(OpenSSLCipher.java:435)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at com.android.org.conscrypt.OpenSSLCipher.engineInit(OpenSSLCipher.java:260)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.tryTransformWithProvider(Cipher.java:2977)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.tryCombinations(Cipher.java:2884)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher$SpiAndProviderUpdater.updateAndGetSpiAndProvider(Cipher.java:2789)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.chooseProvider(Cipher.java:956)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.init(Cipher.java:1199)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at javax.crypto.Cipher.init(Cipher.java:1143)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintKeyStoreHelper.initEncryptCipher(FingerprintKeyStoreHelper.java:96)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.fingerprint.FingerprintBiometricView.activate(FingerprintBiometricView.java:81)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.setUpFingerprint(SecuritySettingsActivity.java:504)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.settings.SecuritySettingsActivity$SecuritySettingsPreferenceFragment.lambda$onCreate$7(SecuritySettingsActivity.java:250)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at io.enpass.app.settings.-$$Lambda$SecuritySettingsActivity$SecuritySettingsPreferenceFragment$Q9dxnjA7ioBg0jMMaL09yjwZNCA.onPreferenceClick(lambda)
2019-05-27 18:23:27.597 22246-22246/? W/System.err:     at android.preference.Preference.performClick(Preference.java:1022)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.preference.PreferenceScreen.onItemClick(PreferenceScreen.java:214)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AdapterView.performItemClick(AdapterView.java:315)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.widget.AbsListView$4.run(AbsListView.java:4382)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.os.Handler.handleCallback(Handler.java:836)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.os.Handler.dispatchMessage(Handler.java:103)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.os.Looper.loop(Looper.java:203)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at android.app.ActivityThread.main(ActivityThread.java:6251)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at java.lang.reflect.Method.invoke(Native Method)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
2019-05-27 18:23:27.598 22246-22246/? W/System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...