Skip to content

Commit

Permalink
chore(deps): update go-cose to v1.2.1
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Fossati <[email protected]>
  • Loading branch information
thomas-fossati committed Sep 11, 2024
1 parent de149e9 commit 4f141ee
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 726 deletions.
2 changes: 1 addition & 1 deletion comid/cryptokey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func Test_CryptoKey_NewCOSEKey(t *testing.T) {
0x03, 0x41, 0x01, // alg: bstr(1)
}
_, err = NewCOSEKey(badKey)
assert.Contains(t, err.Error(), "alg: invalid type")
assert.Contains(t, err.Error(), "invalid algorithm value")

keySet, err := NewCOSEKey(TestCOSEKeySetOne)
require.NoError(t, err)
Expand Down
2 changes: 1 addition & 1 deletion corim/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func getAlgAndKeyFromJWK(j []byte) (cose.Algorithm, crypto.Signer, error) {
return noAlg, nil, fmt.Errorf("unknown elliptic curve %v", crv)
}
case ed25519.PrivateKey:
alg = cose.AlgorithmEdDSA
alg = cose.AlgorithmEd25519
case *rsa.PrivateKey:
alg = rsaJWKToAlg(k)
if alg == noAlg {
Expand Down
28 changes: 3 additions & 25 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,50 +4,28 @@ go 1.22

require (
github.com/fxamacker/cbor/v2 v2.5.0
github.com/golang/mock v1.6.0
github.com/google/uuid v1.3.0
github.com/lestrrat-go/jwx/v2 v2.0.8
github.com/spf13/afero v1.9.2
github.com/spf13/cast v1.4.1
github.com/spf13/cobra v1.2.1
github.com/spf13/pflag v1.0.5
github.com/spf13/viper v1.9.0
github.com/stretchr/testify v1.8.2
github.com/veraison/apiclient v0.3.1-0.20240807160142-9141ad363e45
github.com/veraison/eat v0.0.0-20210331113810-3da8a4dd42ff
github.com/veraison/go-cose v1.1.1-0.20230825153510-da0f9a62ade7
github.com/veraison/go-cose v1.2.1
github.com/veraison/swid v1.1.1-0.20230911094910-8ffdd07a22ca
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.1.0 // indirect
github.com/fsnotify/fsnotify v1.5.1 // indirect
github.com/goccy/go-json v0.9.11 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/kr/pretty v0.2.0 // indirect
github.com/lestrrat-go/blackmagic v1.0.1 // indirect
github.com/lestrrat-go/httpcc v1.0.1 // indirect
github.com/lestrrat-go/httprc v1.0.4 // indirect
github.com/lestrrat-go/iter v1.0.2 // indirect
github.com/lestrrat-go/option v1.0.0 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.5.0 // indirect
github.com/moogar0880/problems v0.1.1 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/x448/float16 v0.8.4 // indirect
golang.org/x/crypto v0.12.0 // indirect
golang.org/x/net v0.14.0 // indirect
golang.org/x/oauth2 v0.11.0 // indirect
golang.org/x/sys v0.11.0 // indirect
golang.org/x/text v0.12.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 4f141ee

Please sign in to comment.