Android Fingerprint Authentication: Crypto primitive not initialized -
i implemented fingerprint authentication inside application working fine week ago. no changes code , getting following error:
fatal exception: main caused by: java.lang.illegalstateexception: crypto primitive not initialized i'm not sure what's going on nothing has been changed in code, verifying clean pull of branch.
below list of dependencies using in app.
compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.joanzapata.iconify:android-iconify-fontawesome:2.1.1' compile 'com.android.support:design:23.+' compile 'com.github.philjay:mpandroidchart:v2.1.6' compile 'com.squareup.okhttp:okhttp:2.7.1' compile 'org.jdeferred:jdeferred-android-aar:1.2.4' compile 'com.google.code.gson:gson:1.7.2' compile "com.mixpanel.android:mixpanel-android:4.6.4" compile "com.google.android.gms:play-services:3.1+" compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { transitive = true; } compile 'io.branch.sdk.android:library:1.+' compile 'com.parse.bolts:bolts-applinks:1.4.0' compile 'com.github.greenfrvr:rubber-loader:1.1.2@aar' compile 'com.github.deano2390:materialshowcaseview:1.0.6@aar' is there should aware of in regards these new-ish apis?
you need initialize cipher object encryption or decryption
cipher = cipher.getinstance(keyproperties.key_algorithm_aes + "/" + keyproperties.block_mode_cbc + "/" + keyproperties.encryption_padding_pkcs7); cipher.init(cipher.encrypt_mode, key); depending on trying do, may need generate secretkey, keystore , keygenerator well. can elaborate further if needed.
Comments
Post a Comment