Skip to content
Snippets Groups Projects
Commit 9a398006 authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

INFO->TRACE the new debugging lines

parent 2718e8fd
No related branches found
No related tags found
1 merge request!23Release
......@@ -87,13 +87,13 @@ func (m *Manager) handleRequest(cmixMsg format.Message,
myPubKey := diffieHellman.GeneratePublicKey(myHistoricalPrivKey, grp)
jww.INFO.Printf("handleRequest MYPUBKEY: %v", myPubKey.Bytes())
jww.INFO.Printf("handleRequest PARTNERPUBKEY: %v", partnerPubKey.Bytes())
jww.TRACE.Printf("handleRequest MYPUBKEY: %v", myPubKey.Bytes())
jww.TRACE.Printf("handleRequest PARTNERPUBKEY: %v", partnerPubKey.Bytes())
//decrypt the message
jww.INFO.Printf("handleRequest SALT: %v", baseFmt.GetSalt())
jww.INFO.Printf("handleRequest ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.INFO.Printf("handleRequest MAC: %v", cmixMsg.GetMac())
jww.TRACE.Printf("handleRequest SALT: %v", baseFmt.GetSalt())
jww.TRACE.Printf("handleRequest ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.TRACE.Printf("handleRequest MAC: %v", cmixMsg.GetMac())
success, payload := cAuth.Decrypt(myHistoricalPrivKey,
partnerPubKey, baseFmt.GetSalt(), baseFmt.GetEcrPayload(),
......@@ -230,13 +230,13 @@ func (m *Manager) handleConfirm(cmixMsg format.Message, sr *auth.SentRequest,
return
}
jww.INFO.Printf("handleConfirm PARTNERPUBKEY: %v", partnerPubKey.Bytes())
jww.INFO.Printf("handleConfirm SRMYPUBKEY: %v", sr.GetMyPubKey().Bytes())
jww.TRACE.Printf("handleConfirm PARTNERPUBKEY: %v", partnerPubKey.Bytes())
jww.TRACE.Printf("handleConfirm SRMYPUBKEY: %v", sr.GetMyPubKey().Bytes())
// decrypt the payload
jww.INFO.Printf("handleConfirm SALT: %v", baseFmt.GetSalt())
jww.INFO.Printf("handleConfirm ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.INFO.Printf("handleConfirm MAC: %v", cmixMsg.GetMac())
jww.TRACE.Printf("handleConfirm SALT: %v", baseFmt.GetSalt())
jww.TRACE.Printf("handleConfirm ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.TRACE.Printf("handleConfirm MAC: %v", cmixMsg.GetMac())
success, payload := cAuth.Decrypt(sr.GetMyPrivKey(),
partnerPubKey, baseFmt.GetSalt(), baseFmt.GetEcrPayload(),
cmixMsg.GetMac(), grp)
......
......@@ -119,8 +119,8 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
ownership := cAuth.MakeOwnershipProof(storage.E2e().GetDHPrivateKey(),
partner.DhPubKey, storage.E2e().GetGroup())
jww.INFO.Printf("RequestAuth MYPUBKEY: %v", newPubKey.Bytes())
jww.INFO.Printf("RequestAuth THEIRPUBKEY: %v", partner.DhPubKey.Bytes())
jww.TRACE.Printf("RequestAuth MYPUBKEY: %v", newPubKey.Bytes())
jww.TRACE.Printf("RequestAuth THEIRPUBKEY: %v", partner.DhPubKey.Bytes())
/*encrypt payload*/
requestFmt.SetID(storage.GetUser().ReceptionID)
......@@ -140,9 +140,9 @@ func RequestAuth(partner, me contact.Contact, message string, rng io.Reader,
cmixMsg.SetMac(mac)
cmixMsg.SetContents(baseFmt.Marshal())
jww.INFO.Printf("RequestAuth SALT: %v", salt)
jww.INFO.Printf("RequestAuth ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.INFO.Printf("RequestAuth MAC: %v", mac)
jww.TRACE.Printf("RequestAuth SALT: %v", salt)
jww.TRACE.Printf("RequestAuth ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.TRACE.Printf("RequestAuth MAC: %v", mac)
/*store state*/
//fixme: channel is bricked if the first store succedes but the second fails
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment