diff --git a/auth/fmt.go b/auth/fmt.go index 5ee0c4874a28a63edbd0b66f74fed704ec3d5797..04605c95772077de79b2392763330991424e7335 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 142c26115ea8aea510828c36fdd259cf91ae9b51..9251af76bca65579f3bb4d9f8d5107d7da0126c5 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*/