INNER CODE UNIT · Go

errors

schollz/pake · pake_test.go:195

	errors := make(chan error, numGoroutines*2)

	for i := 0; i < numGoroutines; i++ {
		wg.Add(2)
		go func(id int) {
			defer wg.Done()
			pw := []byte{byte(id % 256), 2, 3}
			A, err := InitCurve(pw, 0, "p256")
			if err != nil {
				errors <- err
				return
			}
			B, err := InitCurve(pw, 1, "p256")
			if err != nil {
				errors <- err
				return
			}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…