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

Bump golang.org/x/crypto from 0.0.0-20210421170649-83a5a9bb288b to 0.21.0 #38

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ go 1.17
require (
github.com/davecgh/go-spew v1.1.1
github.com/stretchr/testify v1.7.1
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
golang.org/x/crypto v0.21.0
)

require (
40 changes: 38 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -6,13 +6,49 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b h1:7mWr3k41Qtv8XlltBkDkl8LoP3mpSgBW8BUoxtEdbXg=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk=
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
3 changes: 0 additions & 3 deletions vendor/golang.org/x/crypto/AUTHORS

This file was deleted.

3 changes: 0 additions & 3 deletions vendor/golang.org/x/crypto/CONTRIBUTORS

This file was deleted.

2 changes: 1 addition & 1 deletion vendor/golang.org/x/crypto/pbkdf2/pbkdf2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/modules.txt
Original file line number Diff line number Diff line change
@@ -7,8 +7,8 @@ github.com/pmezard/go-difflib/difflib
# github.com/stretchr/testify v1.7.1
## explicit; go 1.13
github.com/stretchr/testify/assert
# golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b
## explicit; go 1.11
# golang.org/x/crypto v0.21.0
## explicit; go 1.18
golang.org/x/crypto/pbkdf2
golang.org/x/crypto/ripemd160
# gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c

Unchanged files with check annotations Beta

// Ensure the test data is using points that are actually on
// the curve (or the point at infinity).
if !z1.IsZero() && !isJacobianOnS256Curve(x1, y1, z1) {
t.Errorf("#%d first point is not on the curve -- "+

Check failure on line 239 in bec/btcec_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

string `#%d first point is not on the curve -- ` has 4 occurrences, make it a constant (goconst)

Check failure on line 239 in bec/btcec_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

string `#%d first point is not on the curve -- ` has 4 occurrences, make it a constant (goconst)
"invalid test data", i)

Check failure on line 240 in bec/btcec_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

string `invalid test data` has 10 occurrences, make it a constant (goconst)

Check failure on line 240 in bec/btcec_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

string `invalid test data` has 10 occurrences, make it a constant (goconst)
continue
}
if !z2.IsZero() && !isJacobianOnS256Curve(x2, y2, z2) {
continue
}
if !z3.IsZero() && !isJacobianOnS256Curve(x3, y3, z3) {
t.Errorf("#%d expected point is not on the curve -- "+

Check failure on line 249 in bec/btcec_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

string `#%d expected point is not on the curve -- ` has 4 occurrences, make it a constant (goconst)

Check failure on line 249 in bec/btcec_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

string `#%d expected point is not on the curve -- ` has 4 occurrences, make it a constant (goconst)
"invalid test data", i)
continue
}
if !pubKey1.IsEqual(pubKey1) {
t.Fatalf("value of IsEqual is incorrect, %v is "+
"equal to %v", pubKey1, pubKey1)

Check failure on line 277 in bec/pubkey_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

string `equal to %v` has 4 occurrences, make it a constant (goconst)

Check failure on line 277 in bec/pubkey_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

string `equal to %v` has 4 occurrences, make it a constant (goconst)
}
if pubKey1.IsEqual(pubKey2) {
result := f.IsOdd()
if result != test.expected {
t.Errorf("fieldVal.IsOdd #%d wrong result\n"+
"got: %v\nwant: %v", i, result, test.expected)

Check failure on line 351 in bec/field_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

string `got: %v

Check failure on line 351 in bec/field_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

string `got: %v
continue
}
}
privKey, err := key.ECPrivKey()
if !reflect.DeepEqual(err, test.privKeyErr) {
t.Errorf("ECPrivKey #%d (%s): mismatched error: want "+
"%v, got %v", i, test.name, test.privKeyErr, err)

Check failure on line 626 in bip32/extendedkey_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

string `%v, got %v` has 3 occurrences, make it a constant (goconst)

Check failure on line 626 in bip32/extendedkey_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

string `%v, got %v` has 3 occurrences, make it a constant (goconst)
continue
}
if test.privKeyErr == nil {
for name, test := range tests {
t.Run(name, func(t *testing.T) {
k, err := test.key.DeriveChildFromPath(test.path)
assert.NoError(t, err)

Check failure on line 169 in bip32/derivationpaths_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

require-error: for error assertions use require (testifylint)

Check failure on line 169 in bip32/derivationpaths_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

require-error: for error assertions use require (testifylint)
assert.Equal(t, test.expPriv, k.String())
pubKey, err := k.Neuter()
assert.NoError(t, err)

Check failure on line 172 in bip32/derivationpaths_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

require-error: for error assertions use require (testifylint)

Check failure on line 172 in bip32/derivationpaths_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

require-error: for error assertions use require (testifylint)
assert.Equal(t, test.expPub, pubKey.String())
})
}
t.Run(name, func(t *testing.T) {
bb, err := GenerateEntropy(test.length)
assert.Equal(t, test.err, err)
assert.Equal(t, test.expLen, len(bb))

Check failure on line 55 in bip39/bip39_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

len: use assert.Len (testifylint)

Check failure on line 55 in bip39/bip39_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

len: use assert.Len (testifylint)
})
}
}
}
for _, v := range vv {
seed, err := MnemonicToSeed(v[1], "TREZOR")
assert.NoError(t, err)

Check failure on line 131 in bip39/bip39_test.go

GitHub Actions / lint (1.16.x, ubuntu-latest)

require-error: for error assertions use require (testifylint)

Check failure on line 131 in bip39/bip39_test.go

GitHub Actions / lint (1.17.x, ubuntu-latest)

require-error: for error assertions use require (testifylint)
assert.Equal(t, v[2], hex.EncodeToString(seed))
}
}