Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

More GNU S2K dummy: don't bother to read the hash #10

Merged
merged 1 commit into from
Feb 7, 2016

Conversation

maxtaco
Copy link

@maxtaco maxtaco commented Feb 7, 2016

Don't bother the read the hash, which is sometimes set to 0 in GNU S2K dummy configuration.

@maxtaco
Copy link
Author

maxtaco commented Feb 7, 2016

@oconnor663 can you take a look?

@oconnor663
Copy link

This looks fine to me, but I don't understand this code very well. Was trying to compute the hash giving an error that we had to work around?

@maxtaco
Copy link
Author

maxtaco commented Feb 7, 2016

Yes, I can't repro the issue, but others have (see keybase/keybase-issues#1885). Some GPGs output value 0 for hash type in S2K dummy mode, so in the current code we crap out before we get to the GNU options. We don't even need the hash in that case, so it's OK to ignore it.

maxtaco added a commit that referenced this pull request Feb 7, 2016
More GNU S2K dummy: don't bother to read the hash
@maxtaco maxtaco merged commit 826ac31 into master Feb 7, 2016
@maxtaco maxtaco deleted the maxtaco/CORE-2505 branch February 7, 2016 03:30
maxtaco added a commit to keybase/client that referenced this pull request Feb 7, 2016
maxtaco added a commit to keybase/client that referenced this pull request Feb 7, 2016
maxtaco added a commit to keybase/client that referenced this pull request Feb 8, 2016
maxtaco added a commit to keybase/client that referenced this pull request Feb 8, 2016
- vendor in keybase/go-crypto#8 and keybase/go-crypto#10
- vendor in new RSA library (with big E)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants