diff --git a/go.mod b/go.mod index 417152e5eba15cd54e8c92b4b6f92bca92a9e325..477e7fe07f948f8080ced2d77a6dd8f59ab2de02 100644 --- a/go.mod +++ b/go.mod @@ -13,8 +13,8 @@ require ( github.com/spf13/viper v1.7.1 gitlab.com/elixxir/bloomfilter v0.0.0-20200930191214-10e9ac31b228 gitlab.com/elixxir/comms v0.0.4-0.20220323190139-9ed75f3a8b2c - gitlab.com/elixxir/crypto v0.0.7-0.20220418163058-a76028e93dd3 - gitlab.com/elixxir/ekv v0.1.6 + gitlab.com/elixxir/crypto v0.0.7-0.20220420170330-979607dcc6da + gitlab.com/elixxir/ekv v0.1.7 gitlab.com/elixxir/primitives v0.0.3-0.20220330212736-cce83b5f948f gitlab.com/xx_network/comms v0.0.4-0.20220315161313-76acb14429ac gitlab.com/xx_network/crypto v0.0.5-0.20220317171841-084640957d71 diff --git a/go.sum b/go.sum index e763825e430744f3ed713446cbe28f812517f615..68096279f9c5896d461e7d7810d4a99058a52a93 100644 --- a/go.sum +++ b/go.sum @@ -297,8 +297,12 @@ gitlab.com/elixxir/crypto v0.0.7-0.20220331001626-1829e71edf56 h1:1HJHlRwh3dDbvw gitlab.com/elixxir/crypto v0.0.7-0.20220331001626-1829e71edf56/go.mod h1:JkByWX/TXCjdu6pRJsx+jwttbBGvlAljYSJMImDmt+4= gitlab.com/elixxir/crypto v0.0.7-0.20220406193349-d25222ea3c6e h1:P+E0+AdevTNWBdqf4+covcmTrRfe6rKPLtevFrjbKQA= gitlab.com/elixxir/crypto v0.0.7-0.20220406193349-d25222ea3c6e/go.mod h1:JkByWX/TXCjdu6pRJsx+jwttbBGvlAljYSJMImDmt+4= +gitlab.com/elixxir/crypto v0.0.7-0.20220415180223-ec8d560270a1 h1:stzHgpYxHQu3JgvQu5Vr0hr4nzJUk5CxspZEoNx26eQ= +gitlab.com/elixxir/crypto v0.0.7-0.20220415180223-ec8d560270a1/go.mod h1:JkByWX/TXCjdu6pRJsx+jwttbBGvlAljYSJMImDmt+4= gitlab.com/elixxir/crypto v0.0.7-0.20220418163058-a76028e93dd3 h1:tYr7CjBj3p4tmUmvEmsX5n0m0GsfG8eJOu1YLoBHE2g= gitlab.com/elixxir/crypto v0.0.7-0.20220418163058-a76028e93dd3/go.mod h1:JkByWX/TXCjdu6pRJsx+jwttbBGvlAljYSJMImDmt+4= +gitlab.com/elixxir/crypto v0.0.7-0.20220420170330-979607dcc6da h1:SZQTa7Gp2vPAwu3yQDhkiKPhFqQXCsiRi0s40e/em/Y= +gitlab.com/elixxir/crypto v0.0.7-0.20220420170330-979607dcc6da/go.mod h1:JkByWX/TXCjdu6pRJsx+jwttbBGvlAljYSJMImDmt+4= gitlab.com/elixxir/ekv v0.1.6 h1:M2hUSNhH/ChxDd+s8xBqSEKgoPtmE6hOEBqQ73KbN6A= gitlab.com/elixxir/ekv v0.1.6/go.mod h1:e6WPUt97taFZe5PFLPb1Dupk7tqmDCTQu1kkstqJvw4= gitlab.com/elixxir/ekv v0.1.7 h1:OW2z+N4QCqqMFzouAwFTWWMKz0Y/PDhyYReN7gQ5NiQ= diff --git a/single/interfaces.go b/single/interfaces.go index 3f53b3afa72df421da9e23b85dde0f72b9814f0b..8ee9bf00212ff187cc5059798d7f44a2fb2a9cda 100644 --- a/single/interfaces.go +++ b/single/interfaces.go @@ -28,4 +28,5 @@ type CMix interface { DeleteService(clientID *id.ID, toDelete message.Service, processor message.Processor) GetInstance() *network.Instance + CheckInProgressMessages() } diff --git a/single/listener.go b/single/listener.go index c41d5fde017e715cc4145e8fa1fb952e061d01cd..d9c363aa7aa74e82aea2a1381934b546acb9535c 100644 --- a/single/listener.go +++ b/single/listener.go @@ -74,6 +74,7 @@ func (l *listener) Process(ecrMsg format.Message, // Generate DH key and symmetric key senderPubkey := requestMsg.GetPubKey(l.grp) dhKey := l.grp.Exp(senderPubkey, l.myPrivKey, l.grp.NewInt(1)) + key := singleUse.NewRequestKey(dhKey) // Verify the MAC diff --git a/single/request.go b/single/request.go index 6198b1ffc46d5b8c0a6d74cec3cb6134c28291f8..79017d8cd3edc59e02ab68b474d2b901699891b2 100644 --- a/single/request.go +++ b/single/request.go @@ -2,6 +2,8 @@ package single import ( "bytes" + "encoding/base64" + "fmt" "github.com/pkg/errors" jww "github.com/spf13/jwalterweatherman" "gitlab.com/elixxir/client/cmix" diff --git a/ud/lookup.go b/ud/lookup.go index 7dd78c25054e4fac35e9259ba1ed0426dc1bd85c..348256ade9acab0d5f9831051308283a5377bff4 100644 --- a/ud/lookup.go +++ b/ud/lookup.go @@ -68,7 +68,7 @@ func lookup(net CMix, rng csprng.Source, uid *id.ID, grp *cyclic.Group, timeout time.Duration, udContact contact.Contact, - callback lookupCallback) (id.Round, + callback lookupCallback) ([]id.Round, receptionID.EphemeralIdentity, error) { // Build the request and marshal it request := &LookupSend{UserID: uid.Marshal()}