[PR #1925] [MERGED] Switch to keybase go-crypto (for some elliptic curve key) + test #16123

Closed
opened 2025-11-02 12:02:50 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/1925
Author: @sapk
Created: 6/10/2017
Status: Merged
Merged: 6/14/2017
Merged by: @lunny

Base: masterHead: test-brainpoolP256r1-key


📝 Commits (3)

  • 2f09c72 Switch to keybase go-crypto (for some elliptic curve key) + test
  • f524731 Use assert.NoError
  • d8dd246 Use assert.(No)Error everywhere 🌈

📊 Changes

56 files changed (+10618 additions, -922 deletions)

View changed files

📝 models/gpg_key.go (+3 -3)
📝 models/gpg_key_test.go (+31 -10)
vendor/github.com/keybase/go-crypto/LICENSE (+27 -0)
vendor/github.com/keybase/go-crypto/PATENTS (+22 -0)
vendor/github.com/keybase/go-crypto/brainpool/brainpool.go (+134 -0)
vendor/github.com/keybase/go-crypto/brainpool/rcurve.go (+83 -0)
📝 vendor/github.com/keybase/go-crypto/cast5/cast5.go (+1 -1)
vendor/github.com/keybase/go-crypto/curve25519/const_amd64.s (+20 -0)
vendor/github.com/keybase/go-crypto/curve25519/cswap_amd64.s (+88 -0)
vendor/github.com/keybase/go-crypto/curve25519/curve25519.go (+841 -0)
vendor/github.com/keybase/go-crypto/curve25519/curve_impl.go (+113 -0)
vendor/github.com/keybase/go-crypto/curve25519/doc.go (+23 -0)
vendor/github.com/keybase/go-crypto/curve25519/freeze_amd64.s (+94 -0)
vendor/github.com/keybase/go-crypto/curve25519/ladderstep_amd64.s (+1398 -0)
vendor/github.com/keybase/go-crypto/curve25519/mont25519_amd64.go (+240 -0)
vendor/github.com/keybase/go-crypto/curve25519/mul_amd64.s (+191 -0)
vendor/github.com/keybase/go-crypto/curve25519/square_amd64.s (+153 -0)
vendor/github.com/keybase/go-crypto/ed25519/ed25519.go (+181 -0)
vendor/github.com/keybase/go-crypto/ed25519/internal/edwards25519/const.go (+1422 -0)
vendor/github.com/keybase/go-crypto/ed25519/internal/edwards25519/edwards25519.go (+1771 -0)

...and 36 more files

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/1925 **Author:** [@sapk](https://github.com/sapk) **Created:** 6/10/2017 **Status:** ✅ Merged **Merged:** 6/14/2017 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `test-brainpoolP256r1-key` --- ### 📝 Commits (3) - [`2f09c72`](https://github.com/go-gitea/gitea/commit/2f09c72dcbbf754645b28b7a397f10ee41affc7e) Switch to keybase go-crypto (for some elliptic curve key) + test - [`f524731`](https://github.com/go-gitea/gitea/commit/f524731e1acc9b8276b6f559421ee0fe7cd77125) Use assert.NoError - [`d8dd246`](https://github.com/go-gitea/gitea/commit/d8dd246f64050f58aa36f9b08782b1f38927dc57) Use assert.(No)Error everywhere 🌈 ### 📊 Changes **56 files changed** (+10618 additions, -922 deletions) <details> <summary>View changed files</summary> 📝 `models/gpg_key.go` (+3 -3) 📝 `models/gpg_key_test.go` (+31 -10) ➕ `vendor/github.com/keybase/go-crypto/LICENSE` (+27 -0) ➕ `vendor/github.com/keybase/go-crypto/PATENTS` (+22 -0) ➕ `vendor/github.com/keybase/go-crypto/brainpool/brainpool.go` (+134 -0) ➕ `vendor/github.com/keybase/go-crypto/brainpool/rcurve.go` (+83 -0) 📝 `vendor/github.com/keybase/go-crypto/cast5/cast5.go` (+1 -1) ➕ `vendor/github.com/keybase/go-crypto/curve25519/const_amd64.s` (+20 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/cswap_amd64.s` (+88 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/curve25519.go` (+841 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/curve_impl.go` (+113 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/doc.go` (+23 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/freeze_amd64.s` (+94 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/ladderstep_amd64.s` (+1398 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/mont25519_amd64.go` (+240 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/mul_amd64.s` (+191 -0) ➕ `vendor/github.com/keybase/go-crypto/curve25519/square_amd64.s` (+153 -0) ➕ `vendor/github.com/keybase/go-crypto/ed25519/ed25519.go` (+181 -0) ➕ `vendor/github.com/keybase/go-crypto/ed25519/internal/edwards25519/const.go` (+1422 -0) ➕ `vendor/github.com/keybase/go-crypto/ed25519/internal/edwards25519/edwards25519.go` (+1771 -0) _...and 36 more files_ </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:02:50 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#16123