mirror of
https://github.com/google/go-attestation.git
synced 2025-02-21 01:11:21 +00:00
Validate secret in attest_tpm12_test, fix godoc
This commit is contained in:
parent
21c2bfd1dc
commit
ca33c04742
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
// Package attest abstracts TPM attestation operations.
|
||||
package attest
|
||||
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
package attest
|
||||
|
||||
import (
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
package attest
|
||||
|
||||
import (
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
package attest
|
||||
|
||||
import (
|
||||
@ -195,5 +196,9 @@ func TestTPMActivateCredential(t *testing.T) {
|
||||
t.Fatalf("ActivateCredential failed: %v", err)
|
||||
}
|
||||
|
||||
if !bytes.Equal(validation, nonce) {
|
||||
t.Errorf("secret mismatch: expected %x, got %x", nonce, validation)
|
||||
}
|
||||
|
||||
t.Logf("validation: %x", validation)
|
||||
}
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
// +build windows
|
||||
|
||||
package attest
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
package attest
|
||||
|
||||
import (
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
// +build linux
|
||||
|
||||
package attest
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
// +build windows
|
||||
|
||||
package attest
|
||||
|
@ -11,6 +11,7 @@
|
||||
// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
// License for the specific language governing permissions and limitations under
|
||||
// the License.
|
||||
|
||||
package attest
|
||||
|
||||
// TCGVendorID represents a unique TCG manufacturer code.
|
||||
|
Loading…
x
Reference in New Issue
Block a user