瀏覽代碼

align to new interface for cSIDH

master
Henry Case 5 年之前
父節點
當前提交
4e2996e12d
共有 2 個檔案被更改,包括 3 行新增3 行删除
  1. +1
    -1
      csidh/cmd/torturer/main.go
  2. +2
    -2
      csidh/cmd/vector-creator/main.go

+ 1
- 1
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


+ 2
- 2
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, "", " ")


Loading…
取消
儲存