kryptco / krypton-android

DEPRECATED Krypton turns your Android device into a U2F Authenticator: strong, unphishable 2FA.
https://krypt.co
Other
202 stars 50 forks source link

Android 5 generate key pair error. #77

Closed bartoszek closed 6 years ago

bartoszek commented 7 years ago

Not working on A5(level 22)Xperia Z. Error log shows this

07-07 15:56:30.846 E/AndroidRuntime(16239): at co.krypt.kryptonite.crypto.KeyManager.loadOrGenerateKeyPair(KeyManager.java:50)

07-07 15:56:30.846 E/AndroidRuntime(16239): at co.krypt.kryptonite.onboarding.GenerateFragment$2.run(GenerateFragment.java:69)

07-07 15:56:30.846 E/AndroidRuntime(16239): Caused by: java.lang.ClassNotFoundException: Didn't find class "android.security.keystore.KeyGenParameterSpec$Builder" on path: DexPathList[[zip file "/data/app/co.krypt.kryptonite-1/base.apk"],nativeLibraryDirectories=[/data/app/co.krypt.kryptonite-1/lib/arm, /vendor/lib, /system/lib]]

kcking commented 7 years ago

Thanks for the stack trace, I will see if we can fall back to Ed25519 in this case as it seems the RSA AndroidKeystore is not supported on your phone.

kcking commented 6 years ago

Thank you again for reporting -- for the foreseeable future we will only be supporting android 6+.