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

Trial decrypt for old versions of the request packet

parent 68d8542c
Branches
Tags
3 merge requests!231Revert "Update store to print changes to the partners list",!187Xx 3829/triggers,!179Decrypt old auth channel request packets
......@@ -107,10 +107,19 @@ func (m *Manager) handleRequest(cmixMsg format.Message,
jww.TRACE.Printf("handleRequest ECRPAYLOAD: %v", baseFmt.GetEcrPayload())
jww.TRACE.Printf("handleRequest MAC: %v", cmixMsg.GetMac())
ecrPayload := baseFmt.GetEcrPayload()
success, payload := cAuth.Decrypt(myHistoricalPrivKey,
partnerPubKey, baseFmt.GetEcrPayload(),
partnerPubKey, ecrPayload,
cmixMsg.GetMac(), grp)
if !success {
jww.WARN.Printf("Attempting to decrypt old request packet...")
ecrPayload = append(ecrPayload, baseFmt.GetVersion())
success, payload = cAuth.Decrypt(myHistoricalPrivKey,
partnerPubKey, ecrPayload,
cmixMsg.GetMac(), grp)
}
if !success {
jww.WARN.Printf("Received auth request failed " +
"its mac check")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment