stillbornwolf / android-privacy-guard

Automatically exported from code.google.com/p/android-privacy-guard
0 stars 0 forks source link

Cannot use private keys imported from gpg file. #107

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Copy .gnupg/secring.gpg to sd card and import it as Secret key file.
2. Copy .gnupg/pubring.gpg to sd card and import it as Public key file.

What is the expected output? What do you see instead?
Keys are properly displayed but pass phrase to access private key is not 
accepted. Error message "Wrong pass phrase" always appear.

What version of the product are you using? On what operating system?
Version 1.0.8 on Milestone 2 (Froyo). Keys generated using gnupg 2.0.17 and 
libcrypt 1.4.6

Please provide any additional information below.
Tried with an old key DSA/ElGamal 1024/4096, an new one DSA/ElGamal 1024/4096 
and a RSA 4096. 
If I create a new one using APG menu, password is accepted to use/edit private 
key.

Original issue reported on code.google.com by lenh...@gmail.com on 8 May 2011 at 5:05

GoogleCodeExporter commented 8 years ago
Actually the problem is that APG does not support other digest algorithm then 
MD5 and SHA1 to mangle passphrases (gpg --s2k-digest-algo command).
I changed password using SHA1 algo and APG was able to open the key.
So, this ticket could be change to Enhancement -> Support SHA256/384/512 as 
digest algorithm to mangle passphrases.

Regards.

Original comment by lenh...@gmail.com on 10 May 2011 at 4:07

GoogleCodeExporter commented 8 years ago
I'm having this problem now. I'll have to investigate what algo was used on my 
private key. I don't know offhand. 

Original comment by msoul...@gmail.com on 2 May 2012 at 1:37

GoogleCodeExporter commented 8 years ago
Also --s2k-cipher-algo is not supported. 

See 
https://code.google.com/p/android-privacy-guard/issues/detail?id=149&can=6&colsp
ec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary%20Reporter

Original comment by andrixnet on 24 Oct 2013 at 8:36