From da82d5232b12687f8b0eea4e8bbb6c7f1352c841 Mon Sep 17 00:00:00 2001
From: "Richard T. Carback III" <rick.carback@gmail.com>
Date: Mon, 9 Nov 2020 19:36:42 +0000
Subject: [PATCH] Fix typos

---
 auth/fmt.go     | 2 +-
 auth/request.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/auth/fmt.go b/auth/fmt.go
index 5ee0c4874..04605c957 100644
--- a/auth/fmt.go
+++ b/auth/fmt.go
@@ -177,7 +177,7 @@ func newRequestFormat(ecrFmt ecrFormat) (requestFormat, error) {
 	}
 
 	rf.id = rf.payload[:id.ArrIDLen]
-	rf.id = rf.payload[id.ArrIDLen:]
+	rf.msgPayload = rf.payload[id.ArrIDLen:]
 
 	return rf, nil
 }
diff --git a/auth/request.go b/auth/request.go
index 142c26115..9251af76b 100644
--- a/auth/request.go
+++ b/auth/request.go
@@ -111,7 +111,7 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
 	requestFmt.SetMsgPayload(msgPayloadBytes)
 	ecrFmt.SetOwnership(ownership)
 	ecrPayload, mac := cAuth.Encrypt(newPrivKey, partner.DhPubKey,
-		salt, ecrFmt.payload, grp)
+		salt, ecrFmt.data, grp)
 	fp := cAuth.MakeOwnershipProofFP(ownership)
 
 	/*construct message*/
-- 
GitLab