Skip to content
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

Switch to keybase go-crypto (for some elliptic curve key) + test #1925

Merged
merged 3 commits into from
Jun 14, 2017

Conversation

sapk
Copy link
Member

@sapk sapk commented Jun 10, 2017

Fix #1898 by using keybase/go-crypto in place of golang.org/x/crypto.

In folder openpgp, keybase/go-crypto is not that far away of golang.org/x/crypto and implement more key type.

@lunny lunny added this to the 1.2.0 milestone Jun 10, 2017
@lunny lunny added the type/bug label Jun 10, 2017
@bkcsoft
Copy link
Member

bkcsoft commented Jun 11, 2017

LGTM. Though I'd prefer go-crypto/openpgp to be merged into stdlib 😉

@tboerger tboerger added the lgtm/need 1 This PR needs approval from one additional maintainer to be merged. label Jun 11, 2017
-----END PGP PUBLIC KEY BLOCK-----`

key, err := checkArmoredGPGKeyString(testGPGArmor)
assert.Nil(t, err, "Could not parse a valid GPG armored key", key)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For checking errors, you should use assert.NoError(..)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done and update all test in this file to use .Error .NotError

and add a little more context to failing test description
and assert.Error in place of .Nil/.NotNil
@Bwko
Copy link
Member

Bwko commented Jun 13, 2017

LGTM

@tboerger tboerger added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jun 13, 2017
@lunny lunny merged commit 274149d into go-gitea:master Jun 14, 2017
@sapk sapk deleted the test-brainpoolP256r1-key branch June 17, 2017 17:12
@go-gitea go-gitea locked and limited conversation to collaborators Nov 23, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GPG2 ECDSA brainpool curve key not working
6 participants