-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error exporting private key #1111
Comments
Thanks for reporting. |
Note to myself: investigate encoding issues in the passphrase - or it might be just a passphrase handling bug in the app... |
About your note: I've read on a previous bug about handling "complex" passwords, so I tried also with a simple, only character-based password. The problem remains. |
Same issue for me Environment Kontalk version: From Play Store 4.1.1 Android version: 7.0 NRD90M.G930FXXU1DQJ1 Device model: Samsung Galaxy S7 SM-G930F Logs 2017-12-04 22:31:45 E/Kontalk: error exporting keys |
same issue for me Kontalk version: From F-Droid, 4.1.2 Android version: Resurrection Remix Nougat android-7.1.2_r36 Device model: Huawei P10 lite 2017 - WAS-LX1A 2018-01-05 14:45:28 E/Kontalk: error exporting keys |
Expected behavior
Menu -> maintenance -> Export private key -> export private key on a zipped file
Actual behavior
Error in export. The procedure creates an empty (0kb) file.
Steps to reproduce
Environment
Kontalk version: From F-Droid 4.1.1 (2.7.0)
Android version: LineageOS 14.1 Android 7.1.2
Device model: Xiaomi Redmi 3
Logs
(enabling debug mode)
2017-12-04 14:11:37 E/Kontalk: error exporting keys
2017-12-04 14:11:37 E/Kontalk: org.spongycastle.openpgp.PGPException: checksum mismatch at 0 of 20
at org.spongycastle.openpgp.PGPSecretKey.extractKeyData(PGPSecretKey.java:400)
at org.spongycastle.openpgp.PGPSecretKey.copyWithNewPassword(PGPSecretKey.java:667)
at org.spongycastle.openpgp.PGPSecretKeyRing.copyWithNewPassword(PGPSecretKeyRing.java:403)
at org.kontalk.crypto.PGP.copySecretKeyRingWithNewPassword(PGP.java:679)
at org.kontalk.crypto.PGP.copySecretKeyRingWithNewPassword(PGP.java:664)
at org.kontalk.crypto.PersonalKeyExporter.save(PersonalKeyExporter.java:60)
at org.kontalk.authenticator.Authenticator.exportDefaultPersonalKey(Authenticator.java:212)
at org.kontalk.Kontalk.exportPersonalKey(Kontalk.java:274)
at org.kontalk.ui.prefs.MaintenanceFragment.exportPersonalKey(MaintenanceFragment.java:439)
at org.kontalk.ui.prefs.MaintenanceFragment.onActivityResult(MaintenanceFragment.java:467)
at android.support.v4.app.FragmentActivity.onActivityResult(FragmentActivity.java:151)
at android.app.Activity.dispatchActivityResult(Activity.java:6937)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4122)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4169)
at android.app.ActivityThread.-wrap20(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1552)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6186)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Other
Thank you
The text was updated successfully, but these errors were encountered: