1
1
# go-tcg-storage
2
2
3
- [ ![ Workflow] ( https://github.com/bluecmd /go-tcg-storage/workflows/Release/badge.svg )] ( https://github.com/bluecmd /go-tcg-storage/actions/workflows/release.yml )
4
- [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/bluecmd /go-tcg-storage )] ( https://goreportcard.com/report/github.com/bluecmd /go-tcg-storage )
5
- [ ![ GoDoc] ( https://godoc.org/github.com/bluecmd /go-tcg-storage?status.svg )] ( https://pkg.go.dev/github.com/bluecmd /go-tcg-storage@main )
3
+ [ ![ Workflow] ( https://github.com/open-source-firmware /go-tcg-storage/workflows/Release/badge.svg )] ( https://github.com/open-source-firmware /go-tcg-storage/actions/workflows/release.yml )
4
+ [ ![ Go Report Card] ( https://goreportcard.com/badge/github.com/open-source-firmware /go-tcg-storage )] ( https://goreportcard.com/report/github.com/open-source-firmware /go-tcg-storage )
5
+ [ ![ GoDoc] ( https://godoc.org/github.com/open-source-firmware /go-tcg-storage?status.svg )] ( https://pkg.go.dev/github.com/open-source-firmware /go-tcg-storage@main )
6
6
[ ![ Slack] ( https://slack.osfw.dev/badge.svg )] ( https://slack.osfw.dev )
7
- [ ![ License] ( https://img.shields.io/badge/License-BSD%203--Clause-blue.svg )] ( https://github.com/bluecmd /go-tcg-storage/blob/master/LICENSE )
7
+ [ ![ License] ( https://img.shields.io/badge/License-BSD%203--Clause-blue.svg )] ( https://github.com/open-source-firmware /go-tcg-storage/blob/master/LICENSE )
8
8
9
9
Go library for interfacing TCG Storage and Security Subsystem Class (SSC) functions on storage devices.
10
10
@@ -20,13 +20,13 @@ Need support for another standard? Let us know by filing a feature request!
20
20
## Tools
21
21
22
22
* [ sedlockctl] ( cmd/sedlockctl/README.md ) is a tool that helps you manage SED/TCG drives.<br >
23
- Install it: ` go install github.com/bluecmd /go-tcg-storage/cmd/sedlockctl@main `
23
+ Install it: ` go install github.com/open-source-firmware /go-tcg-storage/cmd/sedlockctl@main `
24
24
25
25
* [ tcgsdiag] ( cmd/tcgsdiag/README.md ) lets you list a whole lot of diagnostic information about TCG drives.<br >
26
- Install it: ` go install github.com/bluecmd /go-tcg-storage/cmd/tcgsdiag@main `
26
+ Install it: ` go install github.com/open-source-firmware /go-tcg-storage/cmd/tcgsdiag@main `
27
27
28
28
* [ tcgdiskstat] ( cmd/tcgdiskstat/README.md ) is like ` blkid ` or ` lsscsi ` but for TCG drives.<br >
29
- Install it: ` go install github.com/bluecmd /go-tcg-storage/cmd/tcgdiskstat@main `
29
+ Install it: ` go install github.com/open-source-firmware /go-tcg-storage/cmd/tcgdiskstat@main `
30
30
31
31
32
32
## Supported Transports
@@ -53,7 +53,7 @@ The most low-level interface is the `drive` interface that implements
53
53
the ` IF-SEND ` and ` IF-RECV ` functions that the TCG Storage standards
54
54
rely on. Likely nobody outside this library will find that library useful.
55
55
56
- One abstraction up is the ` core ` library that implements the
56
+ One abstraction up is the ` core ` library that implements the
57
57
TCG Storage specifications in a quite verbose manner. The guiding
58
58
principle with the ` core ` library is that you should be able to do
59
59
anything with it, but it might require you to know what functions
@@ -69,9 +69,9 @@ is implementing.
69
69
70
70
``` go
71
71
import (
72
- tcg " github.com/bluecmd /go-tcg-storage/pkg/core"
73
- " github.com/bluecmd /go-tcg-storage/pkg/core/table"
74
- " github.com/bluecmd /go-tcg-storage/pkg/drive"
72
+ tcg " github.com/open-source-firmware /go-tcg-storage/pkg/core"
73
+ " github.com/open-source-firmware /go-tcg-storage/pkg/core/table"
74
+ " github.com/open-source-firmware /go-tcg-storage/pkg/drive"
75
75
)
76
76
77
77
func main () {
@@ -89,7 +89,7 @@ func main() {
89
89
90
90
// This is how you call a method on your SP:
91
91
rand , err := table.ThisSP_Random (s, 8 /* bytes to generate */ )
92
-
92
+
93
93
// You can authenticate using the MSID like this:
94
94
msidPin , err := table.Admin_C_PIN_MSID_GetPIN (s)
95
95
if err := table.ThisSP_Authenticate (s, tcg.AuthoritySID , msidPin); err != nil {
@@ -106,8 +106,8 @@ The most minimal example looks something like this:
106
106
``` go
107
107
108
108
import (
109
- " github.com/bluecmd /go-tcg-storage/pkg/drive"
110
- " github.com/bluecmd /go-tcg-storage/pkg/locking"
109
+ " github.com/open-source-firmware /go-tcg-storage/pkg/drive"
110
+ " github.com/open-source-firmware /go-tcg-storage/pkg/locking"
111
111
)
112
112
113
113
func main () {
@@ -126,8 +126,8 @@ A slightly more realistic example looks like this:
126
126
``` go
127
127
128
128
import (
129
- " github.com/bluecmd /go-tcg-storage/pkg/drive"
130
- " github.com/bluecmd /go-tcg-storage/pkg/locking"
129
+ " github.com/open-source-firmware /go-tcg-storage/pkg/drive"
130
+ " github.com/open-source-firmware /go-tcg-storage/pkg/locking"
131
131
)
132
132
133
133
func main () {
0 commit comments