align to new interface for cSIDH
This commit is contained in:
parent
555ec1300d
commit
4e2996e12d
@ -28,7 +28,7 @@ func TestSS() {
|
|||||||
|
|
||||||
s1 := time.Now()
|
s1 := time.Now()
|
||||||
// Generate with Go
|
// Generate with Go
|
||||||
csidh.DeriveSecret(ss[:], &pkA, &prB, rng)
|
csidh.DeriveSecret(&ss, &pkA, &prB, rng)
|
||||||
s2 := time.Since(s1)
|
s2 := time.Since(s1)
|
||||||
|
|
||||||
// Generate with C
|
// Generate with C
|
||||||
|
@ -173,11 +173,11 @@ func createNegativePrivateKey(vectors *TestVectors, num int) {
|
|||||||
func main() {
|
func main() {
|
||||||
var vectors TestVectors
|
var vectors TestVectors
|
||||||
|
|
||||||
for i := 0; i < 10; i++ {
|
for i := 0; i < 100; i++ {
|
||||||
vectors.Vectors = append(vectors.Vectors, createValid(i))
|
vectors.Vectors = append(vectors.Vectors, createValid(i))
|
||||||
}
|
}
|
||||||
createNegativeSharedSecret(&vectors)
|
createNegativeSharedSecret(&vectors)
|
||||||
createNegativePrivateKey(&vectors, 10)
|
createNegativePrivateKey(&vectors, 100)
|
||||||
createNegativePk2(&vectors)
|
createNegativePk2(&vectors)
|
||||||
|
|
||||||
marshalled, err := json.MarshalIndent(vectors, "", " ")
|
marshalled, err := json.MarshalIndent(vectors, "", " ")
|
||||||
|
Loading…
Reference in New Issue
Block a user