Skip to content

Commit 3ec7b50

Browse files
committed
remove simulator references
Signed-off-by: sal rashid <salrashid123@gmail.com>
1 parent 914ce2b commit 3ec7b50

File tree

13 files changed

+0
-45
lines changed

13 files changed

+0
-45
lines changed

common.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
2121
func OpenTPM(path string) (io.ReadWriteCloser, error) {
2222
if slices.Contains(TPMDEVICES, path) {
2323
return tpmutil.OpenTPM(path)
24-
// } else if path == "simulator" {
25-
// return simulator.Get() //GetWithFixedSeedInsecure(1073741825)
2624
} else {
2725
return net.Dial("tcp", path)
2826
}

example/aes/password/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"slices"
1414

1515
keyfile "github.com/foxboron/go-tpm-keyfiles"
16-
"github.com/google/go-tpm-tools/simulator"
1716
"github.com/google/go-tpm/tpm2"
1817
"github.com/google/go-tpm/tpm2/transport"
1918
"github.com/google/go-tpm/tpmutil"
@@ -33,8 +32,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3332
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3433
if slices.Contains(TPMDEVICES, path) {
3534
return tpmutil.OpenTPM(path)
36-
} else if path == "simulator" {
37-
return simulator.Get()
3835
} else {
3936
return net.Dial("tcp", path)
4037
}

example/ecc/password/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import (
1414
"slices"
1515

1616
keyfile "github.com/foxboron/go-tpm-keyfiles"
17-
"github.com/google/go-tpm-tools/simulator"
1817
"github.com/google/go-tpm/tpm2"
1918
"github.com/google/go-tpm/tpm2/transport"
2019
"github.com/google/go-tpm/tpmutil"
@@ -34,8 +33,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3433
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3534
if slices.Contains(TPMDEVICES, path) {
3635
return tpmutil.OpenTPM(path)
37-
} else if path == "simulator" {
38-
return simulator.Get()
3936
} else {
4037
return net.Dial("tcp", path)
4138
}

example/go.mod

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ go 1.24.0
55
require (
66
github.com/foxboron/go-tpm-keyfiles v0.0.0-20250520203025-c3c3a4ec1653
77
github.com/google/go-tpm v0.9.5
8-
github.com/google/go-tpm-tools v0.4.5
98
github.com/salrashid123/signer v0.9.3
109
github.com/salrashid123/tpm2genkey v0.8.0
1110
github.com/salrashid123/tpmcopy v0.0.0

example/go.sum

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,10 @@ github.com/foxboron/swtpm_test v0.0.0-20230726224112-46aaafdf7006 h1:50sW4r0Pcvl
66
github.com/foxboron/swtpm_test v0.0.0-20230726224112-46aaafdf7006/go.mod h1:eIXCMsMYCaqq9m1KSSxXwQG11krpuNPGP3k0uaWrbas=
77
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
88
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
9-
github.com/google/go-configfs-tsm v0.3.3-0.20240919001351-b4b5b84fdcbc h1:SG12DWUUM5igxm+//YX5Yq4vhdoRnOG9HkCodkOn+YU=
10-
github.com/google/go-configfs-tsm v0.3.3-0.20240919001351-b4b5b84fdcbc/go.mod h1:EL1GTDFMb5PZQWDviGfZV9n87WeGTR/JUg13RfwkgRo=
11-
github.com/google/go-sev-guest v0.12.1 h1:H4rFYnPIn8HtqEsNTmh56Zxcf9BI9n48ZSYCnpYLYvc=
12-
github.com/google/go-sev-guest v0.12.1/go.mod h1:SK9vW+uyfuzYdVN0m8BShL3OQCtXZe/JPF7ZkpD3760=
13-
github.com/google/go-tdx-guest v0.3.2-0.20241009005452-097ee70d0843 h1:+MoPobRN9HrDhGyn6HnF5NYo4uMBKaiFqAtf/D/OB4A=
14-
github.com/google/go-tdx-guest v0.3.2-0.20241009005452-097ee70d0843/go.mod h1:g/n8sKITIT9xRivBUbizo34DTsUm2nN2uU3A662h09g=
159
github.com/google/go-tpm v0.9.5 h1:ocUmnDebX54dnW+MQWGQRbdaAcJELsa6PqZhJ48KwVU=
1610
github.com/google/go-tpm v0.9.5/go.mod h1:h9jEsEECg7gtLis0upRBQU+GhYVH6jMjrFxI8u6bVUY=
1711
github.com/google/go-tpm-tools v0.4.5 h1:3fhthtyMDbIZFR5/0y1hvUoZ1Kf4i1eZ7C73R4Pvd+k=
1812
github.com/google/go-tpm-tools v0.4.5/go.mod h1:ktjTNq8yZFD6TzdBFefUfen96rF3NpYwpSb2d8bc+Y8=
19-
github.com/google/logger v1.1.1 h1:+6Z2geNxc9G+4D4oDO9njjjn2d0wN5d7uOo0vOIW1NQ=
20-
github.com/google/logger v1.1.1/go.mod h1:BkeJZ+1FhQ+/d087r4dzojEg1u2ZX+ZqG1jTUrLM+zQ=
21-
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
22-
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
2313
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
2414
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2515
github.com/salrashid123/signer v0.9.3 h1:7YfgpI+VFk1B33n/y/eqZJ6a2mLOiaxlNKhNfoJKs8I=
@@ -28,8 +18,6 @@ github.com/salrashid123/tpm2genkey v0.8.0 h1:YnP4gUaM4UPGZze+Ej9rtTL9FMbFsnmqEPO
2818
github.com/salrashid123/tpm2genkey v0.8.0/go.mod h1:VEmxfMMRUm3az7dNeu6RtD31BmIf3+wGxNZ0/jWUS0U=
2919
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
3020
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
31-
go.uber.org/multierr v1.11.0 h1:blXXJkSxSSfBVBlC76pxqeO+LN3aDfLQo+309xJstO0=
32-
go.uber.org/multierr v1.11.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
3321
golang.org/x/crypto v0.40.0 h1:r4x+VvoG5Fm+eJcxMaY8CQM7Lb0l1lsmjGBQ6s8BfKM=
3422
golang.org/x/crypto v0.40.0/go.mod h1:Qr1vMER5WyS2dfPHAlsOj01wgLbsyWtFn/aY+5+ZdxY=
3523
golang.org/x/sys v0.35.0 h1:vz1N37gP5bs89s7He8XuIYXpyY0+QlsKmzipCbUtyxI=

example/hmac/password/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import (
1111
"slices"
1212

1313
keyfile "github.com/foxboron/go-tpm-keyfiles"
14-
"github.com/google/go-tpm-tools/simulator"
1514
"github.com/google/go-tpm/tpm2"
1615
"github.com/google/go-tpm/tpm2/transport"
1716
"github.com/google/go-tpm/tpmutil"
@@ -31,8 +30,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3130
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3231
if slices.Contains(TPMDEVICES, path) {
3332
return tpmutil.OpenTPM(path)
34-
} else if path == "simulator" {
35-
return simulator.Get()
3633
} else {
3734
return net.Dial("tcp", path)
3835
}

example/keyfile_policy/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import (
1313
"slices"
1414

1515
keyfile "github.com/foxboron/go-tpm-keyfiles"
16-
"github.com/google/go-tpm-tools/simulator"
1716
"github.com/google/go-tpm/tpm2"
1817
"github.com/google/go-tpm/tpm2/transport"
1918
"github.com/google/go-tpm/tpmutil"
@@ -33,8 +32,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3332
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3433
if slices.Contains(TPMDEVICES, path) {
3534
return tpmutil.OpenTPM(path)
36-
} else if path == "simulator" {
37-
return simulator.Get()
3835
} else {
3936
return net.Dial("tcp", path)
4037
}

example/rsa/password/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"slices"
1313

1414
keyfile "github.com/foxboron/go-tpm-keyfiles"
15-
"github.com/google/go-tpm-tools/simulator"
1615
"github.com/google/go-tpm/tpm2"
1716
"github.com/google/go-tpm/tpm2/transport"
1817
"github.com/google/go-tpm/tpmutil"
@@ -33,8 +32,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3332
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3433
if slices.Contains(TPMDEVICES, path) {
3534
return tpmutil.OpenTPM(path)
36-
} else if path == "simulator" {
37-
return simulator.Get()
3835
} else {
3936
return net.Dial("tcp", path)
4037
}

example/rsa/pcr/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"slices"
1313

1414
keyfile "github.com/foxboron/go-tpm-keyfiles"
15-
"github.com/google/go-tpm-tools/simulator"
1615
"github.com/google/go-tpm/tpm2"
1716
"github.com/google/go-tpm/tpm2/transport"
1817
"github.com/google/go-tpm/tpmutil"
@@ -32,8 +31,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3231
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3332
if slices.Contains(TPMDEVICES, path) {
3433
return tpmutil.OpenTPM(path)
35-
} else if path == "simulator" {
36-
return simulator.Get()
3734
} else {
3835
return net.Dial("tcp", path)
3936
}

example/rsa/persistent_h2_parent/main.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import (
1212
"slices"
1313

1414
keyfile "github.com/foxboron/go-tpm-keyfiles"
15-
"github.com/google/go-tpm-tools/simulator"
1615
"github.com/google/go-tpm/tpm2"
1716
"github.com/google/go-tpm/tpm2/transport"
1817
"github.com/google/go-tpm/tpmutil"
@@ -35,8 +34,6 @@ var TPMDEVICES = []string{"/dev/tpm0", "/dev/tpmrm0"}
3534
func OpenTPM(path string) (io.ReadWriteCloser, error) {
3635
if slices.Contains(TPMDEVICES, path) {
3736
return tpmutil.OpenTPM(path)
38-
} else if path == "simulator" {
39-
return simulator.Get()
4037
} else {
4138
return net.Dial("tcp", path)
4239
}

0 commit comments

Comments
 (0)