From 4e2996e12d68364761064341cbe1d1b47efafe23 Mon Sep 17 00:00:00 2001 From: Henry Case Date: Mon, 25 Nov 2019 12:42:39 +0000 Subject: [PATCH] align to new interface for cSIDH --- csidh/cmd/torturer/main.go | 2 +- csidh/cmd/vector-creator/main.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/csidh/cmd/torturer/main.go b/csidh/cmd/torturer/main.go index 632234d..fbd9c70 100644 --- a/csidh/cmd/torturer/main.go +++ b/csidh/cmd/torturer/main.go @@ -28,7 +28,7 @@ func TestSS() { s1 := time.Now() // Generate with Go - csidh.DeriveSecret(ss[:], &pkA, &prB, rng) + csidh.DeriveSecret(&ss, &pkA, &prB, rng) s2 := time.Since(s1) // Generate with C diff --git a/csidh/cmd/vector-creator/main.go b/csidh/cmd/vector-creator/main.go index 307f630..87c0201 100644 --- a/csidh/cmd/vector-creator/main.go +++ b/csidh/cmd/vector-creator/main.go @@ -173,11 +173,11 @@ func createNegativePrivateKey(vectors *TestVectors, num int) { func main() { var vectors TestVectors - for i := 0; i < 10; i++ { + for i := 0; i < 100; i++ { vectors.Vectors = append(vectors.Vectors, createValid(i)) } createNegativeSharedSecret(&vectors) - createNegativePrivateKey(&vectors, 10) + createNegativePrivateKey(&vectors, 100) createNegativePk2(&vectors) marshalled, err := json.MarshalIndent(vectors, "", " ")