Skip to content
Snippets Groups Projects
Commit 70a9623b authored by Richard T. Carback III's avatar Richard T. Carback III
Browse files

make sure we generate a new SIDH pubkey

parent 70963e22
No related branches found
No related tags found
2 merge requests!117Release,!73Quantum secure xx messenger key negotiation
......@@ -71,6 +71,8 @@ func ConfirmRequestAuth(partner contact.Contact, rng io.Reader,
sidhVariant := util.GetCompatibleSIDHVariant(theirSidhKey.Variant())
newSIDHPrivKey := util.NewSIDHPrivateKey(sidhVariant)
newSIDHPubKey := util.NewSIDHPublicKey(sidhVariant)
newSIDHPrivKey.Generate(rng)
newSIDHPrivKey.GeneratePublicKey(newSIDHPubKey)
//generate salt
salt := make([]byte, saltSize)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment