Skip to content

Commit

Permalink
chore: update dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Walter <[email protected]>
  • Loading branch information
walterchris committed Aug 12, 2024
1 parent 899d725 commit 586eb92
Show file tree
Hide file tree
Showing 30 changed files with 604 additions and 85 deletions.
2 changes: 1 addition & 1 deletion cmd/core/txt-prov/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/tools"
"github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi"
"github.com/google/go-tpm/tpm"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
log "github.com/sirupsen/logrus"
"golang.org/x/term"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/core/txt-suite/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/9elements/converged-security-suite/v2/pkg/test"
"github.com/9elements/converged-security-suite/v2/pkg/tools"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"

"github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/bruteforcer"
"github.com/9elements/converged-security-suite/v2/pkg/registers"
"github.com/9elements/converged-security-suite/v2/pkg/uefi"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

// Command is the implementation of `commands.Command`.
Expand Down
2 changes: 1 addition & 1 deletion cmd/exp/pcr0tool/commands/pcrread/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"

"github.com/9elements/converged-security-suite/v2/pkg/bootflow/subsystems/trustchains/tpm/pcr"
"github.com/9elements/converged-security-suite/v2/pkg/tpm"
Expand Down
2 changes: 1 addition & 1 deletion cmd/exp/pcr0tool/commands/sum/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/registers"
"github.com/9elements/converged-security-suite/v2/pkg/tpmeventlog"
"github.com/facebookincubator/go-belt/tool/logger"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

func usageAndExit() {
Expand Down
6 changes: 3 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ require (
github.com/go-ng/slices v0.0.0-20230703171042-6195d35636a2
github.com/go-ng/xmath v0.0.0-20230704233441-028f5ea62335
github.com/golang-collections/go-datastructures v0.0.0-20150211160725-59788d5eb259
github.com/google/go-attestation v0.4.3
github.com/google/go-attestation v0.5.1
github.com/google/go-tpm v0.9.1
github.com/google/uuid v1.3.0
github.com/hashicorp/go-multierror v1.1.1
Expand Down Expand Up @@ -44,8 +44,8 @@ require (
github.com/go-ng/xatomic v0.0.0-20230519181013-85c0ec87e55f // indirect
github.com/go-ng/xsort v0.0.0-20220617174223-1d146907bccc // indirect
github.com/godbus/dbus/v5 v5.0.4 // indirect
github.com/google/certificate-transparency-go v1.1.1 // indirect
github.com/google/go-tspi v0.2.1-0.20190423175329-115dea689aad // indirect
github.com/google/certificate-transparency-go v1.1.2 // indirect
github.com/google/go-tspi v0.3.0 // indirect
github.com/hashicorp/errwrap v1.0.0 // indirect
github.com/intel-go/cpuid v0.0.0-20220614022739-219e067757cb // indirect
github.com/jedib0t/go-pretty/v6 v6.4.6 // indirect
Expand Down
627 changes: 573 additions & 54 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/bootflow/actions/tpmactions/tpm_extend.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/bootflow/subsystems/trustchains/tpm"
"github.com/9elements/converged-security-suite/v2/pkg/bootflow/subsystems/trustchains/tpm/pcr"
"github.com/9elements/converged-security-suite/v2/pkg/bootflow/types"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

// TPMExtend is a representation of `TPM2_PCR_Extend`.
Expand Down
2 changes: 1 addition & 1 deletion pkg/bootflow/steps/intelsteps/measure_pcr0_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/bootflow/types"
"github.com/9elements/converged-security-suite/v2/pkg/registers"
"github.com/9elements/converged-security-suite/v2/pkg/tpmeventlog"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
pkgbytes "github.com/linuxboot/fiano/pkg/bytes"
manifest "github.com/linuxboot/fiano/pkg/intel/metadata/cbnt"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/bootflow/subsystems/trustchains/tpm/command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"github.com/facebookincubator/go-belt/tool/logger"
"github.com/facebookincubator/go-belt/tool/logger/implementation/logrus"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bootflow/subsystems/trustchains/tpm/pcr/algorithm.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package pcr

import "github.com/google/go-tpm/tpm2"
import "github.com/google/go-tpm/legacy/tpm2"

// Algorithm is just a type-alias.
type Algorithm = tpm2.Algorithm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/tpmeventlog"
"github.com/facebookincubator/go-belt/tool/experimental/errmon"
"github.com/facebookincubator/go-belt/tool/logger"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
pkgbytes "github.com/linuxboot/fiano/pkg/bytes"
"github.com/xaionaro-go/unhash/pkg/unhash"
"golang.org/x/exp/constraints"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"github.com/facebookincubator/go-belt/tool/logger"
"github.com/facebookincubator/go-belt/tool/logger/implementation/logrus"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/bootflow/subsystems/trustchains/tpm/pools.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"hash"
"sync"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

var hasherPools = [0xffff]sync.Pool{}
Expand Down
2 changes: 1 addition & 1 deletion pkg/bootflow/subsystems/trustchains/tpm/tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/bootflow/subsystems/trustchains/tpm/pcr"
"github.com/9elements/converged-security-suite/v2/pkg/bootflow/types"
"github.com/9elements/converged-security-suite/v2/pkg/tpmeventlog"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/auxdefine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

tpm2 "github.com/google/go-tpm/tpm2"
tpm2 "github.com/google/go-tpm/legacy/tpm2"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

tpm2 "github.com/google/go-tpm/tpm2"
tpm2 "github.com/google/go-tpm/legacy/tpm2"
tpmutil "github.com/google/go-tpm/tpmutil"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/psdefine.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"io"

tpm2 "github.com/google/go-tpm/tpm2"
tpm2 "github.com/google/go-tpm/legacy/tpm2"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/psdelete.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/google/go-tpm/tpmutil"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/pswrite.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"io"

"github.com/9elements/converged-security-suite/v2/pkg/tools"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/google/go-tpm/tpmutil"

log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/show.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"

tools "github.com/9elements/converged-security-suite/v2/pkg/tools"
tpm2 "github.com/google/go-tpm/tpm2"
tpm2 "github.com/google/go-tpm/legacy/tpm2"
log "github.com/sirupsen/logrus"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/provisioning/txt/structures.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package txt
import (
"crypto"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/google/go-tpm/tpmutil"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/test/test_preset.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/9elements/converged-security-suite/v2/pkg/tools"
"github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

// PreSet set of pre-defined assumptions
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/test_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/9elements/converged-security-suite/v2/pkg/tools"
"github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

func TestTest_Run(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/test/tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/tools"
"github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi"
tpm1 "github.com/google/go-tpm/tpm"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

// nolint
Expand Down
2 changes: 1 addition & 1 deletion pkg/tools/acm.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"fmt"
"io"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/linuxboot/fiano/pkg/intel/metadata/fit"

log "github.com/sirupsen/logrus"
Expand Down
2 changes: 1 addition & 1 deletion pkg/tools/lcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"

log "github.com/sirupsen/logrus"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/tpm/read_pcr_from_tpm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/9elements/converged-security-suite/v2/pkg/errors"
"github.com/9elements/go-linux-lowlevel-hw/pkg/hwapi"
tpm1 "github.com/google/go-tpm/tpm"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/marcoguerri/go-tpm-tcti/abrmd"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/tpmeventlog/replay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

"github.com/9elements/converged-security-suite/v2/pkg/bootflow/subsystems/trustchains/tpm/pcr"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
"github.com/stretchr/testify/require"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/tpmeventlog/tpm_event_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/9elements/converged-security-suite/v2/pkg/bootflow/subsystems/trustchains/tpm/pcr"
"github.com/google/go-attestation/attest"
"github.com/google/go-tpm/tpm2"
"github.com/google/go-tpm/legacy/tpm2"
)

// TPMEventLog is a parsed EventLog.
Expand Down

0 comments on commit 586eb92

Please sign in to comment.