mirror of
https://github.com/kairos-io/tpm-helpers.git
synced 2025-09-15 22:29:51 +00:00
@@ -3,9 +3,9 @@ package backend_test
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
. "github.com/kairos-io/tpm-helpers/backend"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
. "github.com/kairos-io/go-tpm/backend"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("SWTPM", func() {
|
var _ = Describe("SWTPM", func() {
|
||||||
|
@@ -10,9 +10,9 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/gorilla/websocket"
|
"github.com/gorilla/websocket"
|
||||||
|
. "github.com/kairos-io/tpm-helpers"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
. "github.com/kairos-io/go-tpm"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func writeRead(conn *websocket.Conn, input []byte) ([]byte, error) {
|
func writeRead(conn *websocket.Conn, input []byte) ([]byte, error) {
|
||||||
|
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/kairos-io/go-tpm
|
module github.com/kairos-io/tpm-helpers
|
||||||
|
|
||||||
go 1.19
|
go 1.19
|
||||||
|
|
||||||
|
3
tpm.go
3
tpm.go
@@ -9,11 +9,10 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
|
||||||
"github.com/google/go-attestation/attest"
|
"github.com/google/go-attestation/attest"
|
||||||
"github.com/google/go-tpm-tools/simulator"
|
"github.com/google/go-tpm-tools/simulator"
|
||||||
|
"github.com/kairos-io/tpm-helpers/backend"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/kairos-io/go-tpm/backend"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// GenerateChallenge generates a challenge from attestation data and a public endorsed key
|
// GenerateChallenge generates a challenge from attestation data and a public endorsed key
|
||||||
|
@@ -3,10 +3,10 @@ package tpm_test
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
. "github.com/kairos-io/tpm-helpers"
|
||||||
|
. "github.com/kairos-io/tpm-helpers/backend"
|
||||||
. "github.com/onsi/ginkgo/v2"
|
. "github.com/onsi/ginkgo/v2"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
. "github.com/kairos-io/go-tpm"
|
|
||||||
. "github.com/kairos-io/go-tpm/backend"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = Describe("Simulated TPM", func() {
|
var _ = Describe("Simulated TPM", func() {
|
||||||
|
Reference in New Issue
Block a user