From 9a3980066a3ec22f125154d3bef6167325dc9015 Mon Sep 17 00:00:00 2001 From: "Richard T. Carback III" <rick.carback@gmail.com> Date: Thu, 17 Jun 2021 20:35:06 +0000 Subject: [PATCH] INFO->TRACE the new debugging lines --- auth/callback.go | 20 ++++++++++---------- auth/request.go | 10 +++++----- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/auth/callback.go b/auth/callback.go index 4bddccd92..c9a7e2d12 100644 --- a/auth/callback.go +++ b/auth/callback.go @@ -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) diff --git a/auth/request.go b/auth/request.go index 40c6c378b..add36835b 100644 --- a/auth/request.go +++ b/auth/request.go @@ -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 -- GitLab