Skip to content
Snippets Groups Projects
Commit c43cc429 authored by Jake Taylor's avatar Jake Taylor
Browse files

fix precan crash

parent fef75849
No related branches found
No related tags found
3 merge requests!510Release,!267Make BuildReceptionIdentity public, and make backup restore function return a...,!263Hotfix/refactor cmd
...@@ -265,13 +265,15 @@ func createPrecannedUser(precannedID uint, rng csprng.Source, e2e *cyclic.Group) ...@@ -265,13 +265,15 @@ func createPrecannedUser(precannedID uint, rng csprng.Source, e2e *cyclic.Group)
jww.FATAL.Panicf(err.Error()) jww.FATAL.Panicf(err.Error())
} }
dhPrivKey := e2e.NewIntFromBytes(e2eKeyBytes)
return user.Info{ return user.Info{
TransmissionID: &userID, TransmissionID: &userID,
TransmissionSalt: salt, TransmissionSalt: salt,
ReceptionID: &userID, ReceptionID: &userID,
ReceptionSalt: salt, ReceptionSalt: salt,
Precanned: true, Precanned: true,
E2eDhPrivateKey: e2e.NewIntFromBytes(e2eKeyBytes), E2eDhPrivateKey: dhPrivKey,
E2eDhPublicKey: e2e.ExpG(dhPrivKey, e2e.NewInt(1)),
TransmissionRSA: rsaKey, TransmissionRSA: rsaKey,
ReceptionRSA: rsaKey, ReceptionRSA: rsaKey,
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment