diff --git a/auth/callback.go b/auth/callback.go index 4bddccd921f3a4dd4d62db2e25a61adfd47058a1..c9a7e2d12307bb616c82aefafaebca8055c026ed 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 40c6c378b02b4080f1cca27fb6625ee5bb28e398..add36835bf19025abc00c8272b6a7bdd042634e1 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