Skip to content
Snippets Groups Projects
Commit 95c8e84f authored by benjamin's avatar benjamin
Browse files

make dh keysize for registration eph dh = 256 bits

parent c51dd3bf
No related branches found
No related tags found
4 merge requests!510Release,!419rewrote the health tracker to both consider if there are waiting rounds and...,!418instrumented node registration and made only 4 paralelell node registrations,!340Project/channels
......@@ -44,8 +44,7 @@ func requestKey(sender gateway.Sender, comms RegisterNodeCommsInterface,
start := time.Now()
prime := grp.GetPBytes()
keyLen := len(prime)
dhPrivBytes, err := csprng.GenerateInGroup(prime, keyLen, rng)
dhPrivBytes, err := csprng.GenerateInGroup(prime, 32, rng)
if err != nil {
return nil, nil, 0, err
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment