Skip to content
Snippets Groups Projects
Commit c109a87f authored by Benjamin Wenger's avatar Benjamin Wenger
Browse files

more debugging

parent 5a70616e
Branches
Tags
3 merge requests!67Release,!60Hotfic/preimage,!55fully implemented trial hashing of identity fingerprints. Needs tests.
...@@ -156,6 +156,8 @@ func buildSlotMessage(msg format.Message, recipient *id.ID, target *id.ID, ...@@ -156,6 +156,8 @@ func buildSlotMessage(msg format.Message, recipient *id.ID, target *id.ID,
msg.SetIdentityFP(ifp) msg.SetIdentityFP(ifp)
jww.INFO.Printf(" Sending to %s with preimage %v, ifp: %v, contents: %v", recipient, preimage, ifp, msg.GetContents())
// Encrypt the message // Encrypt the message
salt := make([]byte, 32) salt := make([]byte, 32)
_, err = stream.Read(salt) _, err = stream.Read(salt)
......
...@@ -177,7 +177,7 @@ func (s *Store) Check(identity *id.ID, identityFP []byte, messageContents []byte ...@@ -177,7 +177,7 @@ func (s *Store) Check(identity *id.ID, identityFP []byte, messageContents []byte
} }
for _, preimage := range preimages { for _, preimage := range preimages {
jww.INFO.Printf("checking %v", preimage) jww.INFO.Printf("checking ifp: %v, msg: %v, preimage %v", identityFP, messageContents, preimage)
if fingerprint2.CheckIdentityFP(identityFP, messageContents, preimage.Data) { if fingerprint2.CheckIdentityFP(identityFP, messageContents, preimage.Data) {
return true, true, preimage return true, true, preimage
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment