Skip to content
Snippets Groups Projects
Commit 4bd803d6 authored by Bernardo Cardoso's avatar Bernardo Cardoso
Browse files

Reset Hash when generating CMIX base keys

parent 80828d08
Branches
Tags
No related merge requests found
...@@ -246,9 +246,13 @@ func Register(preCan bool, registrationCode, registrationAddr string, ...@@ -246,9 +246,13 @@ func Register(preCan bool, registrationCode, registrationAddr string,
&grp, publicKey, privateKey, transmissionHash, &grp, publicKey, privateKey, transmissionHash,
) )
transmissionHash.Reset()
nk[itr].ReceptionKey = registration.GenerateBaseKey( nk[itr].ReceptionKey = registration.GenerateBaseKey(
&grp, publicKey, privateKey, receptionHash, &grp, publicKey, privateKey, receptionHash,
) )
receptionHash.Reset()
} }
u = user.Users.NewUser(UID, base64.StdEncoding.EncodeToString(UID[:])) u = user.Users.NewUser(UID, base64.StdEncoding.EncodeToString(UID[:]))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment