Skip to content
Snippets Groups Projects
Commit a425a480 authored by Niamh Nikali's avatar Niamh Nikali
Browse files

Merge branch 'hotfix/exponentSize_4096' of gitlab.com:elixxir/server into hotfix/exponentSize_4096

parents f9481aaa b018747e
Branches
Tags
No related merge requests found
......@@ -23,7 +23,7 @@ require (
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.6.3
gitlab.com/elixxir/comms v0.0.0-20201007164918-8331c82e4f19
gitlab.com/elixxir/crypto v0.0.0-20201109205009-e19a9b320f68
gitlab.com/elixxir/crypto v0.0.0-20201110173213-96522e94f985
gitlab.com/elixxir/gpumathsgo v0.0.2-0.20201007163558-0fea70f49fe0
gitlab.com/elixxir/primitives v0.0.0-20200929202834-811c810c6387
gitlab.com/xx_network/comms v0.0.0-20200916172635-6ab807c3c820
......
......@@ -228,6 +228,8 @@ gitlab.com/elixxir/crypto v0.0.0-20201109204028-16cccc7b94a4 h1:4ezK7fRUwl/Z+PaE
gitlab.com/elixxir/crypto v0.0.0-20201109204028-16cccc7b94a4/go.mod h1:PFeyONfhulnM72O2wROslwhNadtnyvKAD2QLtQzAifM=
gitlab.com/elixxir/crypto v0.0.0-20201109205009-e19a9b320f68 h1:EDN9V+77asY4Aq2JvQTbP/QeGWjkvTF6DIZardT1g3k=
gitlab.com/elixxir/crypto v0.0.0-20201109205009-e19a9b320f68/go.mod h1:PFeyONfhulnM72O2wROslwhNadtnyvKAD2QLtQzAifM=
gitlab.com/elixxir/crypto v0.0.0-20201110173213-96522e94f985 h1:cSGggAbP1CvYwuzhPOuLOwjiLnrhdrOH1Ls8yLc9L1s=
gitlab.com/elixxir/crypto v0.0.0-20201110173213-96522e94f985/go.mod h1:PFeyONfhulnM72O2wROslwhNadtnyvKAD2QLtQzAifM=
gitlab.com/elixxir/gpumathsgo v0.0.2-0.20200617001921-1de1fff56304 h1:pK9IXv2s7YZX+dGc6UfIWGrDTQjP4kHpGEo0siL/4cQ=
gitlab.com/elixxir/gpumathsgo v0.0.2-0.20200617001921-1de1fff56304/go.mod h1:PymVIFnQSHltaQqwjUTbvSnT9FNViO3XkuNiP9m65vM=
gitlab.com/elixxir/gpumathsgo v0.0.2-0.20201001212319-e5e5794e81ef h1:hrNi2NqazA2IAeF9sq+EcqMnFBebegBwrLaz8pBJezQ=
......
......@@ -21,10 +21,6 @@ import (
// Generate phase transforms first unpermuted internode keys
// and partial cypher texts into the data that the permute phase needs
//size of the exponent. Highly security relevant, DO NOT CHANGE
const exponentSizeBits = 4096
const exponentSize = exponentSizeBits / 8
// GenerateStream holds the inputs for the Generate operation
type GenerateStream struct {
Grp *cyclic.Group
......@@ -120,10 +116,10 @@ var Generate = services.Module{
for i := chunk.Begin(); i < chunk.End(); i++ {
errors := []error{
generate(gs.Grp, gs.R.Get(i), gs.YR.Get(i), exponentSize, stream),
generate(gs.Grp, gs.S.Get(i), gs.YS.Get(i), exponentSize, stream),
generate(gs.Grp, gs.U.Get(i), gs.YU.Get(i), exponentSize, stream),
generate(gs.Grp, gs.V.Get(i), gs.YV.Get(i), exponentSize, stream),
generate(gs.Grp, gs.R.Get(i), gs.YR.Get(i), stream),
generate(gs.Grp, gs.S.Get(i), gs.YS.Get(i), stream),
generate(gs.Grp, gs.U.Get(i), gs.YU.Get(i), stream),
generate(gs.Grp, gs.V.Get(i), gs.YV.Get(i), stream),
}
for _, err := range errors {
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment