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

fix precan crash

parent 7b23b159
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,7 +265,9 @@ func createPrecannedUser(precannedID uint, rng csprng.Source, e2e *cyclic.Group)
jww.FATAL.Panicf(err.Error())
}
dhPrivKey := e2e.NewIntFromBytes(e2eKeyBytes)
prime := e2e.GetPBytes()
keyLen := len(prime)
dhPrivKey := diffieHellman.GeneratePrivateKey(keyLen, e2e, prng)
return user.Info{
TransmissionID: &userID,
TransmissionSalt: salt,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment