PrimeIntellect/SWE-rebench-V2 huggingface dataset:
Repository: google/go-tpm (go)

Issue:
Possible Typo in MakeCredential Method?
Hi,

I think that there is misprint in `MakeCredential` struct, *ObjectNamae* should be renamed to **ObjectName**.

https://github.com/google/go-tpm/blob/f37a5cab945313cd9e6276a7385145ebbaf5e2bd/tpm2/tpm2.go#L344

KR,

Pull request:
tpm2: Fix typo in MakeCredential cmd
fix #390 

Patch:
diff --git a/tpm2/tpm2.go b/tpm2/tpm2.go
index 427b51e..d8487f3 100644
--- a/tpm2/tpm2.go
+++ b/tpm2/tpm2.go
@@ -341,7 +341,7 @@ type MakeCredential struct {
 	// the credential information
 	Credential TPM2BDigest
 	// Name of the object to which the credential applies
-	ObjectNamae TPM2BName
+	ObjectName TPM2BName
 }
 
 // Command implements the Command interface.


Test patch:
diff --git a/tpm2/test/activate_credential_test.go b/tpm2/test/activate_credential_test.go
index b81b5b4..9afa81d 100644
--- a/tpm2/test/activate_credential_test.go
+++ b/tpm2/test/activate_credential_test.go
@@ -56,9 +56,9 @@ func TestActivateCredential(t *testing.T) {
 	secret := TPM2BDigest{Buffer: []byte("Secrets!!!")}
 
 	mc := MakeCredential{
-		Handle:      ekCreateRsp.ObjectHandle,
-		Credential:  secret,
-		ObjectNamae: srkCreateRsp.Name,
+		Handle:     ekCreateRsp.ObjectHandle,
+		Credential: secret,
+		ObjectName: srkCreateRsp.Name,
 	}
 	mcRsp, err := mc.Execute(thetpm)
 	if err != nil {